Handle events

This commit is contained in:
Alex Yatskov 2016-04-14 21:55:21 -07:00
parent 0cd7830281
commit 77761a9538

View File

@ -27,6 +27,8 @@ class Client {
this.popup = document.createElement('iframe');
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);
chrome.runtime.onMessage.addListener(this.onMessage.bind(this));