@symbo.ls/utils
Advanced tools
Comparing version 2.11.398 to 2.11.403
@@ -1467,3 +1467,3 @@ "use strict"; | ||
}; | ||
var loadJavascript = (body, async = false, doc = document, type = "text/javascript") => { | ||
var loadJavascript = (body, async = false, doc = document, type = "text/javascript", id = "smbls-script") => { | ||
try { | ||
@@ -1473,2 +1473,3 @@ const scriptEle = doc.createElement("script"); | ||
scriptEle.async = async; | ||
scriptEle.id = id; | ||
scriptEle.innerHTML = body; | ||
@@ -1475,0 +1476,0 @@ doc.body.appendChild(scriptEle); |
@@ -51,3 +51,3 @@ "use strict"; | ||
}; | ||
var loadJavascript = (body, async = false, doc = document, type = "text/javascript") => { | ||
var loadJavascript = (body, async = false, doc = document, type = "text/javascript", id = "smbls-script") => { | ||
try { | ||
@@ -57,2 +57,3 @@ const scriptEle = doc.createElement("script"); | ||
scriptEle.async = async; | ||
scriptEle.id = id; | ||
scriptEle.innerHTML = body; | ||
@@ -59,0 +60,0 @@ doc.body.appendChild(scriptEle); |
{ | ||
"name": "@symbo.ls/utils", | ||
"version": "2.11.398", | ||
"version": "2.11.403", | ||
"author": "symbo.ls", | ||
@@ -29,3 +29,3 @@ "files": [ | ||
}, | ||
"gitHead": "d3cb027daada2cda9943517e98ffc67e0170a763" | ||
"gitHead": "6d5586392edc76bfa41280278a2673403fd18f50" | ||
} |
@@ -31,3 +31,3 @@ 'use strict' | ||
export const loadJavascript = (body, async = false, doc = document, type = 'text/javascript') => { | ||
export const loadJavascript = (body, async = false, doc = document, type = 'text/javascript', id = 'smbls-script') => { | ||
try { | ||
@@ -37,2 +37,3 @@ const scriptEle = doc.createElement('script') | ||
scriptEle.async = async | ||
scriptEle.id = id | ||
scriptEle.innerHTML = body | ||
@@ -39,0 +40,0 @@ |
173760
4671