* Send component info to parent window
(data)
| 418 | * Send component info to parent window |
| 419 | */ |
| 420 | sendToParent(data) { |
| 421 | try { |
| 422 | window.parent.postMessage({ |
| 423 | type: 'component-selected', |
| 424 | data: data |
| 425 | }, '*'); // Will be validated by parent |
| 426 | |
| 427 | console.log('[Pilot Picker] Component sent to parent:', data); |
| 428 | } catch (error) { |
| 429 | console.error('[Pilot Picker] Error sending to parent:', error); |
| 430 | } |
| 431 | } |
| 432 | |
| 433 | /** |
| 434 | * Send error to parent window |
no outgoing calls
no test coverage detected