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() {
|
||||
if (document.querySelector('script[data-ux-safe-action-adapters]')) return;
|
||||
const script = document.createElement('script');
|
||||
@@ -64,6 +73,7 @@
|
||||
loadCommandPlatformAssets();
|
||||
loadActionRegistryAssets();
|
||||
loadGlobalNavigationAssets();
|
||||
loadNavigationApi();
|
||||
loadSafeActionAdapters();
|
||||
|
||||
const moduleRoot = document.getElementById('admin-modules-panel');
|
||||
|
||||
Reference in New Issue
Block a user