Skip to content

Commit

Permalink
fix: don't check sender for ELECTRON_GUEST_VIEW_MANAGER_FOCUS_CHANGE
Browse files Browse the repository at this point in the history
  • Loading branch information
miniak committed Jan 3, 2019
1 parent 3f1d227 commit 47574e7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/browser/guest-view-manager.js
Expand Up @@ -361,7 +361,8 @@ handleMessage('ELECTRON_GUEST_VIEW_MANAGER_ATTACH_GUEST', function (event, embed
attachGuest(event, embedderFrameId, elementInstanceId, guestInstanceId, params)
})

handleMessage('ELECTRON_GUEST_VIEW_MANAGER_FOCUS_CHANGE', function (event, focus, guestInstanceId) {
// this message is sent by the actual <webview>
ipcMain.on('ELECTRON_GUEST_VIEW_MANAGER_FOCUS_CHANGE', function (event, focus, guestInstanceId) {
event.sender.emit('focus-change', {}, focus, guestInstanceId)
})

Expand Down

0 comments on commit 47574e7

Please sign in to comment.