diff options
author | James Maa <jmaa@berkeley.edu> | 2024-05-31 08:06:52 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-31 15:06:52 +0000 |
commit | 76ca08bd59f0e8bfa1bb20ac813f48e7ab241265 (patch) | |
tree | bdba43d9ba704885383c7f308c6fe3f574c647c5 /ext/js/pages/settings/dictionary-import-controller.js | |
parent | b3f54747eb2694bdc90bce72e5532e99d374ef08 (diff) |
Allow trailing commas in ESLint (#1013)
* Update comma-dangle rule
* Fix dangling commas
Diffstat (limited to 'ext/js/pages/settings/dictionary-import-controller.js')
-rw-r--r-- | ext/js/pages/settings/dictionary-import-controller.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ext/js/pages/settings/dictionary-import-controller.js b/ext/js/pages/settings/dictionary-import-controller.js index 7090e296..c721a9dd 100644 --- a/ext/js/pages/settings/dictionary-import-controller.js +++ b/ext/js/pages/settings/dictionary-import-controller.js @@ -62,12 +62,12 @@ export class DictionaryImportController { this._errorToStringOverrides = [ [ 'A mutation operation was attempted on a database that did not allow mutations.', - 'Access to IndexedDB appears to be restricted. Firefox seems to require that the history preference is set to "Remember history" before IndexedDB use of any kind is allowed.' + 'Access to IndexedDB appears to be restricted. Firefox seems to require that the history preference is set to "Remember history" before IndexedDB use of any kind is allowed.', ], [ 'The operation failed for reasons unrelated to the database itself and not covered by any other error code.', - 'Unable to access IndexedDB due to a possibly corrupt user profile. Try using the "Refresh Firefox" feature to reset your user profile.' - ] + 'Unable to access IndexedDB due to a possibly corrupt user profile. Try using the "Refresh Firefox" feature to reset your user profile.', + ], ]; } @@ -319,7 +319,7 @@ export class DictionaryImportController { const optionsFull = await this._settingsController.getOptionsFull(); const importDetails = { - prefixWildcardsSupported: optionsFull.global.database.prefixWildcardsSupported + prefixWildcardsSupported: optionsFull.global.database.prefixWildcardsSupported, }; let statusPrefix = ''; @@ -355,7 +355,7 @@ export class DictionaryImportController { stepIndex: -1, stepCount: 6, index: 0, - count: 0 + count: 0, }); if (statusFooter !== null) { statusFooter.setTaskActive(progressSelector, true); } errors = [...errors, ...(await this._importDictionary(files[i], importDetails, onProgress) ?? [])]; |