aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js/settings-dictionaries.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2019-11-12 20:01:55 -0500
committertoasted-nutbread <toasted-nutbread@users.noreply.github.com>2019-11-12 20:01:55 -0500
commit72e7a42c8d39e1c1b9c2c7119d1cf4e245e77317 (patch)
tree89280bc93de707fd6769c0836fdd0192ce7b3911 /ext/bg/js/settings-dictionaries.js
parentd9b44040751846d6b0bbf5fcf6ea4152f6ce9bcc (diff)
Fix settings not being saved correctly
Diffstat (limited to 'ext/bg/js/settings-dictionaries.js')
-rw-r--r--ext/bg/js/settings-dictionaries.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/bg/js/settings-dictionaries.js b/ext/bg/js/settings-dictionaries.js
index 720b7d3d..cb6ae348 100644
--- a/ext/bg/js/settings-dictionaries.js
+++ b/ext/bg/js/settings-dictionaries.js
@@ -341,7 +341,7 @@ async function dictSettingsInitialize() {
document.querySelector('#dict-extra-template'),
options.dictionaries
);
- dictionaryUI.save = () => apiOptionsSave();
+ dictionaryUI.save = () => settingsSaveOptions();
document.querySelector('#dict-purge-button').addEventListener('click', (e) => onDictionaryPurgeButtonClick(e), false);
document.querySelector('#dict-purge-confirm').addEventListener('click', (e) => onDictionaryPurge(e), false);
@@ -397,7 +397,7 @@ async function updateMainDictionarySelect(options, dictionaries) {
if (options.general.mainDictionary !== value) {
options.general.mainDictionary = value;
- apiOptionsSave();
+ settingsSaveOptions();
}
}
@@ -406,7 +406,7 @@ async function onDictionaryMainChanged(e) {
const optionsContext = getOptionsContext();
const options = await apiOptionsGet(optionsContext);
options.general.mainDictionary = value;
- apiOptionsSave();
+ settingsSaveOptions();
}