Skip to content

Commit

Permalink
load imslib from deps
Browse files Browse the repository at this point in the history
  • Loading branch information
narcis-radu committed Oct 26, 2023
1 parent 30ce6a6 commit 97ef972
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions libs/deps/imslib.js

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion libs/utils/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -740,6 +740,7 @@ let imsLoaded;
export async function loadIms() {
imsLoaded = imsLoaded || new Promise((resolve, reject) => {
const { locale, imsClientId, imsScope, env } = getConfig();
const { miloLibs, codeRoot } = getConfig();
if (!imsClientId) {
reject(new Error('Missing IMS Client ID'));
return;
Expand All @@ -758,7 +759,9 @@ export async function loadIms() {
},
onError: reject,
};
loadScript('https://auth.services.adobe.com/imslib/imslib.min.js');

const path = miloLibs || codeRoot;
loadScript(`${path}/deps/imslib.js`);
});
return imsLoaded;
}
Expand Down

0 comments on commit 97ef972

Please sign in to comment.