瀏覽代碼

fix undefined value

Gildas 4 年之前
父節點
當前提交
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") {
 		window.globalThis = window;
 	}
+	const document = globalThis.document;
 	const console = globalThis.console;
 	const dispatchEvent = event => globalThis.dispatchEvent(event);
 	const CustomEvent = globalThis.CustomEvent;