aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js/api.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2019-09-08 13:16:05 -0400
committertoasted-nutbread <toasted-nutbread@users.noreply.github.com>2019-09-15 15:56:53 -0400
commit6c571bf8284c44bf01fe20c267fe72cce235b90d (patch)
tree865cdde968346bb5e4d4a5ba6c9c82bc1c220bc6 /ext/bg/js/api.js
parentc8171f5ec7612f0ba147d7e0887cd8c30a527827 (diff)
Add UI for profiles
Diffstat (limited to 'ext/bg/js/api.js')
-rw-r--r--ext/bg/js/api.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/ext/bg/js/api.js b/ext/bg/js/api.js
index 81772d08..f32b984f 100644
--- a/ext/bg/js/api.js
+++ b/ext/bg/js/api.js
@@ -21,9 +21,13 @@ function apiOptionsGet(optionsContext) {
return utilBackend().getOptions(optionsContext);
}
+function apiOptionsGetFull() {
+ return utilBackend().getFullOptions();
+}
+
async function apiOptionsSave(source) {
const backend = utilBackend();
- const options = await backend.getFullOptions();
+ const options = await apiOptionsGetFull();
await optionsSave(options);
backend.onOptionsUpdated(source);
}