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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "single-file-core",
3
- "version": "1.0.53",
3
+ "version": "1.0.54",
4
4
  "description": "SingleFile Core",
5
5
  "author": "Gildas Lormeau",
6
6
  "license": "AGPL-3.0-or-later",
@@ -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();