()
| 42 | * In this case, deregister the UI5 Web Components listener |
| 43 | */ |
| 44 | const initF6Navigation = async () => { |
| 45 | const openUI5Support = getFeature<typeof OpenUI5Support>("OpenUI5Support"); |
| 46 | const isOpenUI5Loaded = openUI5Support ? openUI5Support.isOpenUI5Detected() : false; |
| 47 | const f6Navigation = getFeature<typeof F6Navigation>("F6Navigation"); |
| 48 | |
| 49 | if (openUI5Support) { |
| 50 | f6Navigation && f6Navigation.destroy(); // F6Navigation is not needed when OpenUI5 is used |
| 51 | await openUI5Support.init(); |
| 52 | } |
| 53 | |
| 54 | if (f6Navigation && !isOpenUI5Loaded) { |
| 55 | f6Navigation.init(); |
| 56 | } |
| 57 | }; |
| 58 | |
| 59 | const attachOpenUI5SupportListeners = () => { |
| 60 | if (openUI5ListenersAttached) { |
no test coverage detected
searching dependent graphs…