We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2d1b1f9 commit 656b308Copy full SHA for 656b308
source/scripts/ContentScript/inject/BaseProvider.ts
@@ -322,13 +322,18 @@ export class BaseProvider extends EventEmitter {
322
// Browser will automatically clean up when user navigates away or closes tab
323
// This prevents authentication timeouts and provides better UX
324
325
+ const targetOrigin =
326
+ window.location.origin && window.location.origin !== 'null'
327
+ ? window.location.origin
328
+ : '*';
329
+
330
window.postMessage(
331
{
332
id,
333
type,
334
data,
335
},
- window.location.origin
336
+ targetOrigin
337
);
338
});
339
}
0 commit comments