summaryrefslogtreecommitdiff
path: root/ext/bg/js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2019-11-10 13:55:37 -0500
committertoasted-nutbread <toasted-nutbread@users.noreply.github.com>2019-11-10 13:55:37 -0500
commitd6cdd693c87ffd999cb770172629a256c0b7dde1 (patch)
tree74d9e81f6e30899d229387f97687e316e9384629 /ext/bg/js
parent157e6f7c75a20453e17668c0e8886f46b7f4b7ac (diff)
Fix several warnings about name conflicts
Diffstat (limited to 'ext/bg/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);
}
}