瀏覽代碼

fix: extract getReadyState only when needed

tophf 2 周之前
父節點
當前提交
0c36ea2fdc
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/injected/content/inject.js

+ 1 - 1
src/injected/content/inject.js

@@ -154,7 +154,7 @@ export async function injectScripts(data, info, isXml) {
       [MORE]: more,
       url: IS_FIREFOX && location.href,
     });
-  const getReadyState = describeProperty(Document[PROTO], 'readyState').get;
+  const getReadyState = more && describeProperty(Document[PROTO], 'readyState').get;
   const hasInvoker = contLists;
   if (hasInvoker) {
     setupContentInvoker();