Fix several warnings about name conflicts

This commit is contained in:
toasted-nutbread 2019-11-10 13:55:37 -05:00
parent 157e6f7c75
commit d6cdd693c8
2 changed files with 10 additions and 10 deletions

View File

@ -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);
}
}

View File

@ -77,8 +77,8 @@ class Display {
const definitions = await apiKanjiFind(link.textContent, this.getOptionsContext());
this.setContentKanji(definitions, context);
} catch (e) {
this.onError(e);
} catch (error) {
this.onError(error);
}
}
@ -140,8 +140,8 @@ class Display {
}
this.setContentTerms(definitions, context);
} catch (e) {
this.onError(e);
} catch (error) {
this.onError(error);
}
}