Skip to content

Commit a9881ca

Browse files
MichaelKimfg123
authored andcommitted
Fix window select on render (#42)
1 parent 3954179 commit a9881ca

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/render/index.js

+8
Original file line numberDiff line numberDiff line change
@@ -117,3 +117,11 @@ function getQueryParams(qs) {
117117

118118
return params;
119119
}
120+
121+
// Capture click event to tell Mercury this window is selected
122+
document.addEventListener('click', () => {
123+
sendMessage({
124+
type: 'selectWindow',
125+
id
126+
});
127+
}, true);

0 commit comments

Comments
 (0)