()
| 133 | }; |
| 134 | |
| 135 | const stopPolling = () => { |
| 136 | if (pollHandle !== null) { |
| 137 | clearInterval(pollHandle); |
| 138 | pollHandle = null; |
| 139 | } |
| 140 | }; |
| 141 | |
| 142 | /** Close the popup window if it's still open. Swallows cross-origin errors. */ |
| 143 | const closePopup = (popup: Window | null) => { |