summaryrefslogtreecommitdiff
path: root/ext/bg/js/popup.js
diff options
context:
space:
mode:
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'));
});
});