aboutsummaryrefslogtreecommitdiff
path: root/ext/fg/js/util.js
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2016-09-28 20:14:21 -0700
committerAlex Yatskov <alex@foosoft.net>2016-09-28 20:14:21 -0700
commit004a0d5281fb1793f9106de06fc6758ff97a48fb (patch)
tree95e6c50e7e83c800341f4878475c180cfb4756f2 /ext/fg/js/util.js
parent071902cd057e4828afbc7082271dba1d3ccc1762 (diff)
Fix activation bug
Diffstat (limited to 'ext/fg/js/util.js')
-rw-r--r--ext/fg/js/util.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/ext/fg/js/util.js b/ext/fg/js/util.js
index c24ad885..cf5621ec 100644
--- a/ext/fg/js/util.js
+++ b/ext/fg/js/util.js
@@ -21,6 +21,14 @@ function invokeApiBg(action, params) {
return new Promise((resolve, reject) => chrome.runtime.sendMessage({action, params}, resolve));
}
+function getEnabled() {
+ return invokeApiBg('getEnabled', {});
+}
+
+function getOptions() {
+ return invokeApiBg('getOptions', {});
+}
+
function findTerm(text) {
return invokeApiBg('findTerm', {text});
}