Skip to content

Commit

Permalink
Fix window select on render (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelKim authored and fg123 committed Dec 2, 2018
1 parent 3954179 commit a9881ca
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/render/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,3 +117,11 @@ function getQueryParams(qs) {

return params;
}

// Capture click event to tell Mercury this window is selected
document.addEventListener('click', () => {
sendMessage({
type: 'selectWindow',
id
});
}, true);

0 comments on commit a9881ca

Please sign in to comment.