You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks a lot for your great effort here. Your work has been super useful in constructing templates. I was wondering if you could look at the base code available for adobe sdk and give some direction on how it can be converted into a template? The min.js bit is easy, just injecting the script but the base code is where I am not able to work out how it can be changed. Below is the code. https://experienceleague.adobe.com/docs/experience-platform/edge/fundamentals/installing-the-sdk.html?lang=en
Totally understand if you are too busy and not able to work, below is my code.
Hey Simo,
Thanks a lot for your great effort here. Your work has been super useful in constructing templates. I was wondering if you could look at the base code available for adobe sdk and give some direction on how it can be converted into a template? The min.js bit is easy, just injecting the script but the base code is where I am not able to work out how it can be changed. Below is the code. https://experienceleague.adobe.com/docs/experience-platform/edge/fundamentals/installing-the-sdk.html?lang=en
Totally understand if you are too busy and not able to work, below is my code.
`const injectScript = require('injectScript');
const copyFromWindow = require('copyFromWindow');
const aliasInWindow = require('aliasInWindow');
const setInWindow = require('setInWindow');
const log = require('logToConsole');
const createArgumentsQueue = require('createArgumentsQueue');
const callLater = require('callLater');
function getAlloy(){
let alloy = copyFromWindow('alloy');
if(alloy){
return alloy;
}
alloy = createArgumentsQueue('__alloyNS', 'alloy');
return alloy;
}
const alloy = getAlloy();
const url = "https://cdn1.adoberesources.net/alloy/"+data.version+"/alloy.min.js";
injectScript(url, data.gtmOnSuccess, data.gtmOnFailure, url);
setInWindow('alloy',alloy);`
The text was updated successfully, but these errors were encountered: