Explorar o código

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

tophf %!s(int64=4) %!d(string=hai) anos
pai
achega
df3ec9dd0a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;
     }