()
| 203 | }; |
| 204 | |
| 205 | export const waitUntilNavNode = (): Promise<void> => { |
| 206 | if (searchNavNode(document.body)) { |
| 207 | return Promise.resolve(); |
| 208 | } |
| 209 | return new Promise((resolve) => { |
| 210 | window.addEventListener('ionNavWillLoad', () => resolve(), { once: true }); |
| 211 | }); |
| 212 | }; |
| 213 | |
| 214 | /** Selector for all the outlets supported by the router. */ |
| 215 | const OUTLET_SELECTOR = ':not([no-router]) ion-nav, :not([no-router]) ion-tabs, :not([no-router]) ion-router-outlet'; |
no test coverage detected