Browse Source

make sure SingleFile global variable is set (fix #701)

Gildas 4 năm trước cách đây
mục cha
commit
4bb39b6541
3 tập tin đã thay đổi với 1 bổ sung3 xóa
  1. 0 0
      dist/extension-core.js
  2. 0 0
      dist/single-file.js
  3. 1 3
      extension/index.js

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 0
dist/extension-core.js


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 0
dist/single-file.js


+ 1 - 3
extension/index.js

@@ -26,8 +26,6 @@
 import * as scripts from "./lib/single-file/core/bg/scripts.js";
 import { fetch, frameFetch } from "./lib/single-file/fetch/content/content-fetch.js";
 
-const singlefile = globalThis.singlefile;
-
 export {
 	injectScript,
 	getPageData
@@ -38,5 +36,5 @@ function injectScript(tabId, options) {
 }
 
 function getPageData(options, doc, win, initOptions = { fetch, frameFetch }) {
-	return singlefile.getPageData(options, initOptions, doc, win);
+	return globalThis.singlefile.getPageData(options, initOptions, doc, win);
 }

Một số tệp đã không được hiển thị bởi vì quá nhiều tập tin thay đổi trong này khác