Selaa lähdekoodia

fix issue in injected script

Gildas 4 vuotta sitten
vanhempi
sitoutus
d942c50fe0

+ 1 - 1
lib/single-file/processors/hooks/content/content-hooks-frames.js

@@ -43,7 +43,6 @@ const dispatchEvent = event => globalThis.dispatchEvent(event);
 const CustomEvent = globalThis.CustomEvent;
 const document = globalThis.document;
 const HTMLDocument = globalThis.HTMLDocument;
-const Blob = globalThis.Blob;
 
 let fontFaces;
 if (window._singleFile_fontFaces) {
@@ -129,6 +128,7 @@ function injectedScript() {
 	const dispatchEvent = event => globalThis.dispatchEvent(event);
 	const CustomEvent = globalThis.CustomEvent;
 	const FileReader = globalThis.FileReader;
+	const Blob = globalThis.Blob;
 	const warn = (console && console.warn && ((...args) => console.warn(...args))) || (() => { });
 	const NEW_FONT_FACE_EVENT = "single-file-new-font-face";
 	const FONT_STYLE_PROPERTIES = {