@symbo.ls/utils
Advanced tools
Comparing version 2.11.394 to 2.11.395
@@ -1443,3 +1443,3 @@ "use strict"; | ||
// src/load.js | ||
var loadJavascriptFile = (FILE_URL, async = true, doc = document, type = "text/javascript") => { | ||
var loadJavascriptFile = (FILE_URL, async = false, doc = document, type = "text/javascript") => { | ||
return new Promise((resolve, reject) => { | ||
@@ -1468,3 +1468,3 @@ try { | ||
}; | ||
var loadJavascript = (body, async = true, doc = document, type = "text/javascript") => { | ||
var loadJavascript = (body, async = false, doc = document, type = "text/javascript") => { | ||
try { | ||
@@ -1471,0 +1471,0 @@ const scriptEle = doc.createElement("script"); |
@@ -27,3 +27,3 @@ "use strict"; | ||
module.exports = __toCommonJS(load_exports); | ||
var loadJavascriptFile = (FILE_URL, async = true, doc = document, type = "text/javascript") => { | ||
var loadJavascriptFile = (FILE_URL, async = false, doc = document, type = "text/javascript") => { | ||
return new Promise((resolve, reject) => { | ||
@@ -52,3 +52,3 @@ try { | ||
}; | ||
var loadJavascript = (body, async = true, doc = document, type = "text/javascript") => { | ||
var loadJavascript = (body, async = false, doc = document, type = "text/javascript") => { | ||
try { | ||
@@ -55,0 +55,0 @@ const scriptEle = doc.createElement("script"); |
{ | ||
"name": "@symbo.ls/utils", | ||
"version": "2.11.394", | ||
"version": "2.11.395", | ||
"author": "symbo.ls", | ||
@@ -29,3 +29,3 @@ "files": [ | ||
}, | ||
"gitHead": "96fc31e44dd43084955c647e91b5d0e70d56aee8" | ||
"gitHead": "8b54bd82dd9500f86640ec553bc55d8f627a6297" | ||
} |
'use strict' | ||
export const loadJavascriptFile = (FILE_URL, async = true, doc = document, type = 'text/javascript') => { | ||
export const loadJavascriptFile = (FILE_URL, async = false, doc = document, type = 'text/javascript') => { | ||
return new Promise((resolve, reject) => { | ||
@@ -31,3 +31,3 @@ try { | ||
export const loadJavascript = (body, async = true, doc = document, type = 'text/javascript') => { | ||
export const loadJavascript = (body, async = false, doc = document, type = 'text/javascript') => { | ||
try { | ||
@@ -34,0 +34,0 @@ const scriptEle = doc.createElement('script') |
173629