single-file-core 1.0.53 → 1.0.54
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/single-file-core.js +2 -0
package/package.json
CHANGED
package/single-file-core.js
CHANGED
|
@@ -1802,6 +1802,8 @@ class ProcessorHelper {
|
|
|
1802
1802
|
let forbiddenPrefixFound = PREFIXES_FORBIDDEN_DATA_URI.filter(prefixDataURI => content.startsWith(prefixDataURI)).length;
|
|
1803
1803
|
if (forbiddenPrefixFound) {
|
|
1804
1804
|
forbiddenPrefixFound = await new Promise((resolve) => {
|
|
1805
|
+
// eslint-disable-next-line no-undef
|
|
1806
|
+
globalThis,setTimeout(() => resolve(), 2000);
|
|
1805
1807
|
const element = doc.createElement(resourceElement.tagName);
|
|
1806
1808
|
element.setAttribute(attributeName, content);
|
|
1807
1809
|
element.onload = () => resolve();
|