Skip to content

Commit

Permalink
Update lib/browser/api/web-contents.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Jeremy Rose <jeremya@chromium.org>
  • Loading branch information
miniak and nornagon committed Dec 2, 2020
1 parent 6eb5079 commit d45e7c3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/browser/api/web-contents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -494,8 +494,9 @@ const addReplyInternalToEvent = (event: any) => {
};

const addSenderFrameToEvent = (event: any) => {
const { processId, frameId } = event
Object.defineProperty(event, 'senderFrame', {
get: () => webFrameMain.fromId(event.processId, event.frameId)
get: () => webFrameMain.fromId(processId, frameId)
});
};

Expand Down

0 comments on commit d45e7c3

Please sign in to comment.