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); await ankiDeckAndModelPopulate(options);
ankiErrorShow(); ankiErrorShow();
} }
} catch (e) { } catch (error) {
ankiErrorShow(e); ankiErrorShow(error);
} finally { } finally {
ankiSpinnerShow(false); ankiSpinnerShow(false);
} }
@ -602,8 +602,8 @@ async function onAnkiModelChanged(e) {
ankiSpinnerShow(true); ankiSpinnerShow(true);
await ankiFieldsPopulate(element, options); await ankiFieldsPopulate(element, options);
ankiErrorShow(); ankiErrorShow();
} catch (e) { } catch (error) {
ankiErrorShow(e); ankiErrorShow(error);
} finally { } finally {
ankiSpinnerShow(false); ankiSpinnerShow(false);
} }
@ -627,8 +627,8 @@ async function onAnkiFieldTemplatesResetConfirm(e) {
$('#field-templates').val(fieldTemplates); $('#field-templates').val(fieldTemplates);
onAnkiTemplatesValidateCompile(); onAnkiTemplatesValidateCompile();
await settingsSaveOptions(); await settingsSaveOptions();
} catch (e) { } catch (error) {
ankiErrorShow(e); ankiErrorShow(error);
} }
} }

View File

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