Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/porthole.js
Original file line number Diff line number Diff line change
Expand Up @@ -225,10 +225,10 @@ iFrame proxy abc.com->abc.com: forwardMessageEvent(event)
dispatchEvent: function(event) {
var i;
for (i = 0; i < this.eventListeners.length; i++) {
try {
//try {
this.eventListeners[i](event);
} catch(e) {
}
//} catch(e) {
//}
}
}
});
Expand Down Expand Up @@ -460,7 +460,7 @@ iFrame proxy abc.com->abc.com: forwardMessageEvent(event)
// that is declared to be targetting the window that is calling us
if (w[i] !== null &&
typeof w[i] === 'object' &&
w[i] instanceof w.Porthole.WindowProxy &&
w[i] instanceof w.Porthole.WindowProxyBase &&
w[i].getTargetWindowName() === sourceWindowName) {
return w[i];
}
Expand Down