summaryrefslogtreecommitdiff
path: root/ext/bg/js/settings.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/bg/js/settings.js')
-rw-r--r--ext/bg/js/settings.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/ext/bg/js/settings.js b/ext/bg/js/settings.js
index 9d95e358..129d5f10 100644
--- a/ext/bg/js/settings.js
+++ b/ext/bg/js/settings.js
@@ -188,8 +188,8 @@ async function onFormOptionsChanged(e) {
await ankiDeckAndModelPopulate(options);
ankiErrorShow();
}
- } catch (e) {
- ankiErrorShow(e);
+ } catch (error) {
+ ankiErrorShow(error);
} finally {
ankiSpinnerShow(false);
}
@@ -602,8 +602,8 @@ async function onAnkiModelChanged(e) {
ankiSpinnerShow(true);
await ankiFieldsPopulate(element, options);
ankiErrorShow();
- } catch (e) {
- ankiErrorShow(e);
+ } catch (error) {
+ ankiErrorShow(error);
} finally {
ankiSpinnerShow(false);
}
@@ -627,8 +627,8 @@ async function onAnkiFieldTemplatesResetConfirm(e) {
$('#field-templates').val(fieldTemplates);
onAnkiTemplatesValidateCompile();
await settingsSaveOptions();
- } catch (e) {
- ankiErrorShow(e);
+ } catch (error) {
+ ankiErrorShow(error);
}
}