Gildas 4 лет назад
Родитель
Сommit
5c44768da1
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      lib/single-file/processors/hooks/content/content-hooks-frames.js

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

@@ -134,6 +134,7 @@ function injectedScript() {
 	if (typeof globalThis == "undefined") {
 	if (typeof globalThis == "undefined") {
 		window.globalThis = window;
 		window.globalThis = window;
 	}
 	}
+	const document = globalThis.document;
 	const console = globalThis.console;
 	const console = globalThis.console;
 	const dispatchEvent = event => globalThis.dispatchEvent(event);
 	const dispatchEvent = event => globalThis.dispatchEvent(event);
 	const CustomEvent = globalThis.CustomEvent;
 	const CustomEvent = globalThis.CustomEvent;