Browse Source

fix: bridge.send/call, regressed in 5a78bdd1

tophf 4 years ago
parent
commit
df3ec9dd0a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/injected/content/bridge.js

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

@@ -41,7 +41,7 @@ const bridge = {
     if (!handle || !allow[cmd]?.[dataKey]) {
       throw new ErrorSafe(`[Violentmonkey] Invalid command: "${cmd}" on ${global.location.host}`);
     }
-    const callbackId = data && data::getOwnProp(CALLBACK_ID);
+    const callbackId = data && getOwnProp(data, CALLBACK_ID);
     if (callbackId) {
       data = data.data;
     }