diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2019-11-12 20:01:55 -0500 |
---|---|---|
committer | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2019-11-12 20:01:55 -0500 |
commit | 72e7a42c8d39e1c1b9c2c7119d1cf4e245e77317 (patch) | |
tree | 89280bc93de707fd6769c0836fdd0192ce7b3911 /ext/bg/js/settings-profiles.js | |
parent | d9b44040751846d6b0bbf5fcf6ea4152f6ce9bcc (diff) |
Fix settings not being saved correctly
Diffstat (limited to 'ext/bg/js/settings-profiles.js')
-rw-r--r-- | ext/bg/js/settings-profiles.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/bg/js/settings-profiles.js b/ext/bg/js/settings-profiles.js index ededc998..3ae9db14 100644 --- a/ext/bg/js/settings-profiles.js +++ b/ext/bg/js/settings-profiles.js @@ -95,7 +95,7 @@ async function profileFormWrite(optionsFull) { $('#profile-add-condition-group') ); profileConditionsContainer.save = () => { - apiOptionsSave(); + settingsSaveOptions(); conditionsClearCaches(profileConditionsDescriptor); }; profileConditionsContainer.isolate = utilBackgroundIsolate; @@ -166,7 +166,7 @@ async function onProfileOptionsChanged(e) { const optionsFull = await apiOptionsGetFull(); await profileFormRead(optionsFull); - await apiOptionsSave(); + await settingsSaveOptions(); } async function onTargetProfileChanged() { @@ -188,7 +188,7 @@ async function onProfileAdd() { optionsFull.profiles.push(profile); currentProfileIndex = optionsFull.profiles.length - 1; await profileOptionsUpdateTarget(optionsFull); - await apiOptionsSave(); + await settingsSaveOptions(); } async function onProfileRemove(e) { @@ -226,7 +226,7 @@ async function onProfileRemoveConfirm() { } await profileOptionsUpdateTarget(optionsFull); - await apiOptionsSave(); + await settingsSaveOptions(); } function onProfileNameChanged() { |