Skip to content

Commit

Permalink
import at top so we don't have to make normalizePath async
Browse files Browse the repository at this point in the history
  • Loading branch information
vgoodric committed Oct 17, 2024
1 parent 9112446 commit 0107cc7
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions libs/features/personalization/personalization.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
/* eslint-disable no-console */

import { createTag, getConfig, loadLink, loadScript, localizeLink } from '../../utils/utils.js';
import { getFederatedUrl } from '../../utils/federated.js';

/* c8 ignore start */
const PHONE_SIZE = window.screen.width < 550 || window.screen.height < 550;
Expand Down Expand Up @@ -67,10 +68,7 @@ export const normalizePath = (p, localize = true) => {

const config = getConfig();
if (path.startsWith('https://www.adobe.com/federal/')) {
import('../../utils/federated.js').then(({ getFederatedUrl }) => {
path = getFederatedUrl(path);
});
return path;
return getFederatedUrl(path);
}

if (path.startsWith(config.codeRoot)
Expand Down

0 comments on commit 0107cc7

Please sign in to comment.