summaryrefslogtreecommitdiff
path: root/ext/bg/js/popup.js
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2017-08-05 13:13:06 -0700
committerAlex Yatskov <alex@foosoft.net>2017-08-05 13:13:06 -0700
commitb2003a0a560a9bd469e23e860c39dc5b21412021 (patch)
tree49304a40694712044c264268300bd2fb5651e020 /ext/bg/js/popup.js
parentef43b742b0b0705e8fe44792933878c161d55d8f (diff)
cleanup
Diffstat (limited to 'ext/bg/js/popup.js')
-rw-r--r--ext/bg/js/popup.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/bg/js/popup.js b/ext/bg/js/popup.js
index 712839d9..77cb5166 100644
--- a/ext/bg/js/popup.js
+++ b/ext/bg/js/popup.js
@@ -18,14 +18,14 @@
$(document).ready(() => {
- $('#open-search').click(() => utilCommandDispatch('search'));
- $('#open-options').click(() => utilCommandDispatch('options'));
- $('#open-help').click(() => utilCommandDispatch('help'));
+ $('#open-search').click(() => apiCommandExec('search'));
+ $('#open-options').click(() => apiCommandExec('options'));
+ $('#open-help').click(() => apiCommandExec('help'));
optionsLoad().then(options => {
const toggle = $('#enable-search');
toggle.prop('checked', options.general.enable).change();
toggle.bootstrapToggle();
- toggle.change(() => utilCommandDispatch('toggle'));
+ toggle.change(() => apiCommandExec('toggle'));
});
});