1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-11-26 22:41:17 +02:00

Tools: Apply eslint rules "no-console" and "id-denylist"

This commit is contained in:
Laurent Cozic
2023-02-16 10:55:24 +00:00
parent 625689dbb1
commit 7fa1459dc3
77 changed files with 183 additions and 79 deletions

View File

@@ -61,8 +61,8 @@ export const KeymapConfigScreen = ({ themeId }: KeymapConfigScreenProps) => {
try {
const keymapFile = await shim.fsDriver().readFile(actualFilePath, 'utf-8');
overrideKeymapItems(JSON.parse(keymapFile));
} catch (err) {
bridge().showErrorMessageBox(_('Error: %s', err.message));
} catch (error) {
bridge().showErrorMessageBox(_('Error: %s', error.message));
}
}
};
@@ -77,8 +77,8 @@ export const KeymapConfigScreen = ({ themeId }: KeymapConfigScreenProps) => {
try {
// KeymapService is already synchronized with the in-state keymap
await keymapService.saveCustomKeymap(filePath);
} catch (err) {
bridge().showErrorMessageBox(err.message);
} catch (error) {
bridge().showerrororMessageBox(error.message);
}
}
};