diff options
Diffstat (limited to 'ext/bg/js/settings')
-rw-r--r-- | ext/bg/js/settings/backup.js | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/ext/bg/js/settings/backup.js b/ext/bg/js/settings/backup.js index 13f90886..57963cec 100644 --- a/ext/bg/js/settings/backup.js +++ b/ext/bg/js/settings/backup.js @@ -16,9 +16,8 @@ */ /* global + * OptionsUtil * api - * optionsGetDefault - * optionsUpdateVersion */ class SettingsBackup { @@ -323,7 +322,7 @@ class SettingsBackup { } // Upgrade options - optionsFull = optionsUpdateVersion(optionsFull, {}); + optionsFull = await OptionsUtil.update(optionsFull); // Check for warnings const sanitizationWarnings = this._settingsImportSanitizeOptions(optionsFull, true); @@ -369,7 +368,7 @@ class SettingsBackup { $('#settings-reset-modal').modal('hide'); // Get default options - const optionsFull = optionsGetDefault(); + const optionsFull = await OptionsUtil.getDefault(); // Assign options await this._settingsImportSetOptionsFull(optionsFull); |