Skip to content

Commit

Permalink
fix webview communication for safari (#13587)
Browse files Browse the repository at this point in the history
Signed-off-by: Jonah Iden <jonah.iden@typefox.io>
  • Loading branch information
jonah-iden authored Apr 17, 2024
1 parent fea794f commit 106da53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/plugin-ext/src/main/browser/webview/pre/host.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
let sourceIsChildFrame = false;
for (let i = 0; i < window.frames.length; i++) {
const frame = window.frames[i];
if (e.source === frame) {
if (e.origin === frame.origin) {
sourceIsChildFrame = true;
break;
}
Expand Down

0 comments on commit 106da53

Please sign in to comment.