diff options
| author | Alex Yatskov <alex@foosoft.net> | 2016-09-18 19:50:32 -0700 | 
|---|---|---|
| committer | Alex Yatskov <alex@foosoft.net> | 2016-09-18 19:50:32 -0700 | 
| commit | b44d19b35e120133a4bb751e176aec4d14b6cbc5 (patch) | |
| tree | 05b23ef7e70e57f2cf38584a20c864ff0d7e4853 /ext/fg/js/popup.js | |
| parent | 7bd642e53868e0a3154b285be969cc2e6068f46f (diff) | |
| parent | 4e2d7327c5b1aa8eed035dc4c177a3b9b49c5ab7 (diff) | |
Merge branch 'dev'
Diffstat (limited to 'ext/fg/js/popup.js')
| -rw-r--r-- | ext/fg/js/popup.js | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/ext/fg/js/popup.js b/ext/fg/js/popup.js index a0eb725c..88b8e4e3 100644 --- a/ext/fg/js/popup.js +++ b/ext/fg/js/popup.js @@ -68,7 +68,7 @@ class Popup {          doc.close();      } -    sendMessage(action, params, callback) { +    invokeApi(action, params) {          if (this.popup !== null) {              this.popup.contentWindow.postMessage({action, params}, '*');          } @@ -81,8 +81,8 @@ class Popup {          this.popup = document.createElement('iframe');          this.popup.id = 'yomichan-popup'; -        this.popup.addEventListener('mousedown', (e) => e.stopPropagation()); -        this.popup.addEventListener('scroll', (e) => e.stopPropagation()); +        this.popup.addEventListener('mousedown', e => e.stopPropagation()); +        this.popup.addEventListener('scroll', e => e.stopPropagation());          document.body.appendChild(this.popup);      } |