Hi, I’m using the below code to use a javascript library in the editor for development in a workflow:
document.body.appendChild(Object.assign(document.createElement('script'), {
type: 'text/javascript',
src: 'https://cdn.plaid.com/link/v2/stable/link-initialize.js',
onload: () => this.onScriptLoaded()
}));
This works well for the editor, but I am including the js library in my site’s custom code already for use in production. Is there a way to determine if I am in the editor or production site, so that I don’t include it twice on production? I’d like to not run this workflow if I am on production.
Thank you!