summaryrefslogtreecommitdiff
path: root/ext/bg
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-07-19 22:05:37 -0400
committerGitHub <noreply@github.com>2020-07-19 22:05:37 -0400
commitd7aaab685ee23ebcd60b69211b02f6a66f57fa17 (patch)
treeca59e232aa7b1220d994887bf5caa383386917bc /ext/bg
parent8aa7bc1eec23ee7f347aacd63a21552762c4e2b8 (diff)
Dev dependencies updates (#679)
* Update eslint to 7.5.0 * Update eslint-plugin-no-unsanitized to 3.1.2 * Update fake-indexeddb to 3.1.1 * Rename DictionaryImporter.import to .importDictionary Conflicts with o-unsanitized/method
Diffstat (limited to 'ext/bg')
-rw-r--r--ext/bg/js/backend.js4
-rw-r--r--ext/bg/js/dictionary-importer.js2
2 files changed, 3 insertions, 3 deletions
diff --git a/ext/bg/js/backend.js b/ext/bg/js/backend.js
index 9bdcc18a..74680099 100644
--- a/ext/bg/js/backend.js
+++ b/ext/bg/js/backend.js
@@ -757,7 +757,7 @@ class Backend {
}
async _onApiImportDictionaryArchive({archiveContent, details}, sender, onProgress) {
- return await this._dictionaryImporter.import(this._dictionaryDatabase, archiveContent, details, onProgress);
+ return await this._dictionaryImporter.importDictionary(this._dictionaryDatabase, archiveContent, details, onProgress);
}
async _onApiDeleteDictionary({dictionaryName}, sender, onProgress) {
@@ -1064,7 +1064,7 @@ class Backend {
}
async _importDictionary(archiveSource, onProgress, details) {
- return await this._dictionaryImporter.import(this._dictionaryDatabase, archiveSource, onProgress, details);
+ return await this._dictionaryImporter.importDictionary(this._dictionaryDatabase, archiveSource, onProgress, details);
}
async _textParseScanning(text, options) {
diff --git a/ext/bg/js/dictionary-importer.js b/ext/bg/js/dictionary-importer.js
index 12f3129d..69d5c386 100644
--- a/ext/bg/js/dictionary-importer.js
+++ b/ext/bg/js/dictionary-importer.js
@@ -27,7 +27,7 @@ class DictionaryImporter {
this._schemas = new Map();
}
- async import(dictionaryDatabase, archiveSource, details, onProgress) {
+ async importDictionary(dictionaryDatabase, archiveSource, details, onProgress) {
if (!dictionaryDatabase) {
throw new Error('Invalid database');
}