aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js/settings-dictionaries.js
diff options
context:
space:
mode:
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();
}