Skip to content

Commit

Permalink
Update libs/utils/utils.js
Browse files Browse the repository at this point in the history
simplification, removes function call

Co-authored-by: Brandon Marshall <kem5brandon@gmail.com>
  • Loading branch information
JasonHowellSlavin and Brandon32 authored Sep 26, 2024
1 parent 2536c25 commit 09b27b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libs/utils/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -1126,8 +1126,8 @@ export async function loadDeferred(area, blocks, config) {
import('../features/personalization/preview.js')
.then(({ default: decoratePreviewMode }) => decoratePreviewMode());
}
if (config?.dynamicNavKey && config?.env?.name !== 'prod') {
const { miloLibs } = getConfig();
if (config.dynamicNavKey && config.env?.name !== 'prod') {
const { miloLibs } = config;
loadStyle(`${miloLibs}/features/dynamic-navigation/status.css`);
const { default: loadDNStatus } = await import('../features/dynamic-navigation/status.js');
loadDNStatus();
Expand Down

0 comments on commit 09b27b9

Please sign in to comment.