Fix several warnings about name conflicts
This commit is contained in:
parent
157e6f7c75
commit
d6cdd693c8
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user