Przeglądaj źródła

move declaration

Gildas 5 lat temu
rodzic
commit
f0e774c194

+ 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 FileReader = globalThis.FileReader;
 const Blob = globalThis.Blob;
 
 let fontFaces;
@@ -126,6 +125,7 @@ function injectedScript() {
 	const console = globalThis.console;
 	const dispatchEvent = event => globalThis.dispatchEvent(event);
 	const CustomEvent = globalThis.CustomEvent;
+	const FileReader = globalThis.FileReader;
 	const warn = (console && console.warn && ((...args) => console.warn(...args))) || (() => { });
 	const NEW_FONT_FACE_EVENT = "single-file-new-font-face";
 	const FONT_STYLE_PROPERTIES = {