summaryrefslogtreecommitdiff
path: root/ext/bg/js/context.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2019-09-07 15:59:10 -0400
committertoasted-nutbread <toasted-nutbread@users.noreply.github.com>2019-09-10 20:09:33 -0400
commit4686a31a0a5d30a1b01e3cd2b689d1950c79c940 (patch)
tree89c2cd502e98f432591cd66790c877a94b1cee64 /ext/bg/js/context.js
parent99cec1d23fc779ae26112dcd63d86b5f6fa4bddd (diff)
Use apiOptionsGet instead of optionsLoad
Diffstat (limited to 'ext/bg/js/context.js')
-rw-r--r--ext/bg/js/context.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/bg/js/context.js b/ext/bg/js/context.js
index 689d6863..dfa224a7 100644
--- a/ext/bg/js/context.js
+++ b/ext/bg/js/context.js
@@ -22,7 +22,8 @@ $(document).ready(utilAsync(() => {
$('#open-options').click(() => apiCommandExec('options'));
$('#open-help').click(() => apiCommandExec('help'));
- optionsLoad().then(options => {
+ const optionsContext = {depth: 0};
+ apiOptionsGet(optionsContext).then(options => {
const toggle = $('#enable-search');
toggle.prop('checked', options.general.enable).change();
toggle.bootstrapToggle();