feat(navigation): load public navigation API before safe action adapters
This commit is contained in:
@@ -52,6 +52,15 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function loadNavigationApi() {
|
||||||
|
if (document.querySelector('script[data-ux-navigation-api]')) return;
|
||||||
|
const script = document.createElement('script');
|
||||||
|
script.src = '/navigation-api.js?v=1.44.0';
|
||||||
|
script.async = false;
|
||||||
|
script.setAttribute('data-ux-navigation-api', 'script');
|
||||||
|
document.body.append(script);
|
||||||
|
}
|
||||||
|
|
||||||
function loadSafeActionAdapters() {
|
function loadSafeActionAdapters() {
|
||||||
if (document.querySelector('script[data-ux-safe-action-adapters]')) return;
|
if (document.querySelector('script[data-ux-safe-action-adapters]')) return;
|
||||||
const script = document.createElement('script');
|
const script = document.createElement('script');
|
||||||
@@ -64,6 +73,7 @@
|
|||||||
loadCommandPlatformAssets();
|
loadCommandPlatformAssets();
|
||||||
loadActionRegistryAssets();
|
loadActionRegistryAssets();
|
||||||
loadGlobalNavigationAssets();
|
loadGlobalNavigationAssets();
|
||||||
|
loadNavigationApi();
|
||||||
loadSafeActionAdapters();
|
loadSafeActionAdapters();
|
||||||
|
|
||||||
const moduleRoot = document.getElementById('admin-modules-panel');
|
const moduleRoot = document.getElementById('admin-modules-panel');
|
||||||
|
|||||||
Reference in New Issue
Block a user