Skip to content

Commit

Permalink
Merge pull request #10 from adobecom/hlx5
Browse files Browse the repository at this point in the history
Update scripts.js
  • Loading branch information
auniverseaway authored Jan 22, 2025
2 parents 33d0319 + 10b5223 commit 8309c5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blog/scripts/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

export function setLibs(location) {
const { hostname, search } = location;
if (!['.hlx.', '.stage.', 'local'].some((i) => hostname.includes(i))) return '/libs';
if (!['.aem.', '.hlx.', '.stage.', 'local'].some((i) => hostname.includes(i))) return '/libs';
const branch = new URLSearchParams(search).get('milolibs') || 'main';
if (branch === 'local') return 'http://localhost:6456/libs';
return branch.includes('--') ? `https://${branch}.hlx.live/libs` : `https://${branch}--milo--adobecom.hlx.live/libs`;
Expand Down

0 comments on commit 8309c5e

Please sign in to comment.