()
| 33 | const [pipWindow, setPipWindow] = createSignal<Window | null>(null) |
| 34 | |
| 35 | // Close pipWindow programmatically |
| 36 | const closePipWindow = () => { |
| 37 | const w = pipWindow() |
| 38 | if (w != null) { |
| 39 | w.close() |
| 40 | setPipWindow(null) |
| 41 | } |
| 42 | } |
| 43 | |
| 44 | // Open new pipWindow |