Skip to content

Commit

Permalink
Fixing code
Browse files Browse the repository at this point in the history
  • Loading branch information
bandana147 committed Jul 23, 2024
1 parent 81321b3 commit f2491b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/utils/federated.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const getFederatedContentRoot = () => {
const { allowedOrigins = [], origin: configOrigin } = getConfig();
if (federatedContentRoot) return federatedContentRoot;
// Non milo consumers will have its origin from congig
const origin = configOrigin || window.location;
const origin = configOrigin || window.location.origin;

federatedContentRoot = [...allowedOrigins, ...cdnWhitelistedOrigins].some((o) => origin.replace('.stage', '') === o)
? origin
Expand Down

0 comments on commit f2491b8

Please sign in to comment.