* Send error to parent window
(message)
| 434 | * Send error to parent window |
| 435 | */ |
| 436 | sendError(message) { |
| 437 | try { |
| 438 | window.parent.postMessage({ |
| 439 | type: 'picker-error', |
| 440 | error: message |
| 441 | }, '*'); |
| 442 | } catch (error) { |
| 443 | console.error('[Pilot Picker] Error sending error to parent:', error); |
| 444 | } |
| 445 | } |
| 446 | } |
| 447 | |
| 448 | // Initialize picker instance |