Skip to content

Commit bf0c7a4

Browse files
authoredNov 20, 2024
Returns MessageChannel instead of just postMessage function
1 parent 512b6b8 commit bf0c7a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎WindowScript.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@
120120
const functionProxy = {
121121
apply: function (target, thisArg, argumentsList) {
122122
if (target.name === 'postMessage') {
123-
hook(argumentsList, type, target);
123+
hook(argumentsList, type, thisArg);
124124
}
125125
const result = Reflect.apply(...arguments);
126126
return (shouldProxy) ? useProxy(result, handle(type)) : result;

0 commit comments

Comments
 (0)