Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
return head;
});
}
if (options.versions) {
data.body.splice(0, 0, {
tagName: 'script',
closeTag: true,
innerHTML: `TALEND_APP_INFO=${JSON.stringify(options.versions)}`,
attributes: { type: 'text/javascript' },
});
}
if (options.appLoaderIcon) {
data.head.splice(0, 0, {
tagName: 'style',
closeTag: true,
innerHTML: AppLoader.getLoaderStyle(options.appLoaderIcon),
});
}
return data;
});
});