diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2019-09-10 19:55:14 -0400 |
---|---|---|
committer | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2019-09-18 19:14:04 -0400 |
commit | dcfe722ba626a439db621385005aaa57b61835ca (patch) | |
tree | 7da108355eb69ae6b9ef26cbf4e7a8064ea5bb3a /ext/bg/js/context.js | |
parent | 8c4fb28a300b84ce876c35c370bd43daf2e65228 (diff) |
Add support for using optionsContext to select which profile to use
Diffstat (limited to 'ext/bg/js/context.js')
-rw-r--r-- | ext/bg/js/context.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ext/bg/js/context.js b/ext/bg/js/context.js index dfa224a7..0f88e9c0 100644 --- a/ext/bg/js/context.js +++ b/ext/bg/js/context.js @@ -22,7 +22,10 @@ $(document).ready(utilAsync(() => { $('#open-options').click(() => apiCommandExec('options')); $('#open-help').click(() => apiCommandExec('help')); - const optionsContext = {depth: 0}; + const optionsContext = { + depth: 0, + url: window.location.href + }; apiOptionsGet(optionsContext).then(options => { const toggle = $('#enable-search'); toggle.prop('checked', options.general.enable).change(); |