瀏覽代碼

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

Gildas 4 年之前
父節點
當前提交
4bb39b6541
共有 3 個文件被更改,包括 1 次插入3 次删除
  1. 0 0
      dist/extension-core.js
  2. 0 0
      dist/single-file.js
  3. 1 3
      extension/index.js

File diff suppressed because it is too large
+ 0 - 0
dist/extension-core.js


File diff suppressed because it is too large
+ 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);
 }

Some files were not shown because too many files changed in this diff