Handle events
This commit is contained in:
parent
0cd7830281
commit
77761a9538
@ -27,6 +27,8 @@ class Client {
|
|||||||
|
|
||||||
this.popup = document.createElement('iframe');
|
this.popup = document.createElement('iframe');
|
||||||
this.popup.classList.add('yomichan-popup');
|
this.popup.classList.add('yomichan-popup');
|
||||||
|
this.popup.addEventListener('mousedown', (e) => e.stopPropagation());
|
||||||
|
this.popup.addEventListener('scroll', (e) => e.stopPropagation());
|
||||||
document.body.appendChild(this.popup);
|
document.body.appendChild(this.popup);
|
||||||
|
|
||||||
chrome.runtime.onMessage.addListener(this.onMessage.bind(this));
|
chrome.runtime.onMessage.addListener(this.onMessage.bind(this));
|
||||||
|
Loading…
Reference in New Issue
Block a user