aboutsummaryrefslogtreecommitdiff
path: root/ext/fg/js/popup.js
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2017-02-05 16:39:40 -0800
committerAlex Yatskov <alex@foosoft.net>2017-02-05 16:39:40 -0800
commit4e3792aba319b52f957c70347e859f677972e4e2 (patch)
tree3ea382513378f852f2126d1113e21061c61adec8 /ext/fg/js/popup.js
parent5076b80f9690a12fda23d06b2c3ddd1df08cff56 (diff)
handle content script and background script desync on version update1.0.9
Diffstat (limited to 'ext/fg/js/popup.js')
-rw-r--r--ext/fg/js/popup.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/ext/fg/js/popup.js b/ext/fg/js/popup.js
index d47ab4ae..74e25c7d 100644
--- a/ext/fg/js/popup.js
+++ b/ext/fg/js/popup.js
@@ -76,7 +76,11 @@ class Popup {
this.invokeApi('showKanjiDefs', {definitions, options});
}
- invokeApi(action, params) {
+ showOrphaned() {
+ this.invokeApi('showOrphaned');
+ }
+
+ invokeApi(action, params={}) {
this.container.contentWindow.postMessage({action, params}, '*');
}
}