fix(core): update

This commit is contained in:
Philipp Kunz 2023-04-05 16:46:13 +02:00
parent bb64a8ecac
commit 94c6c5a525
2 changed files with 4 additions and 4 deletions

View File

@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@designestate/dees-domtools',
version: '2.0.29',
version: '2.0.30',
description: 'tools to simplify complex css structures'
}

View File

@ -149,12 +149,12 @@ export class DomTools {
* allows to set global styles
* @param stylesText the css text you want to set
*/
public async setExternalScript(scriptLinkArg: string) {
public async setExternalScript(scriptLinkArg: string) {
await this.domReady.promise;
const done = plugins.smartpromise.defer();
const script = document.createElement('script')
const script = document.createElement('script');
script.src = scriptLinkArg;
script.addEventListener('load', function() {
script.addEventListener('load', function () {
done.resolve();
});
const parentNode = document.head || document.body;