Browse Source

fix: fix script version check on userscript sites

Gerald 8 years ago
parent
commit
358ffb7a98
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/injected/web/index.js

+ 1 - 1
src/injected/web/index.js

@@ -502,7 +502,7 @@ function exposeVM() {
   Object.defineProperty(Violentmonkey, 'isInstalled', {
     value: (name, namespace) => new Promise(resolve => {
       key += 1;
-      const callback = checking[key];
+      const callback = key;
       checking[callback] = resolve;
       bridge.post({
         cmd: 'CheckScript',