aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2019-12-13 23:22:25 -0500
committertoasted-nutbread <toasted-nutbread@users.noreply.github.com>2019-12-14 11:12:39 -0500
commit300282e3b4cd98b626509671693a35f7249a77c2 (patch)
tree3f92f225736719882619749dc7df8f424349afaa /ext/bg/js
parente417a3fda36fd798298ff9210d34366a3d0adacc (diff)
Read file in the current window context before passing to backend
Diffstat (limited to 'ext/bg/js')
-rw-r--r--ext/bg/js/util.js6
1 files changed, 1 insertions, 5 deletions
diff --git a/ext/bg/js/util.js b/ext/bg/js/util.js
index fedfa466..81cb0e71 100644
--- a/ext/bg/js/util.js
+++ b/ext/bg/js/util.js
@@ -107,11 +107,7 @@ function utilDatabaseDeleteDictionary(dictionaryName, onProgress) {
}
async function utilDatabaseImport(data, progress, details) {
- // Edge cannot read data on the background page due to the File object
- // being created from a different window. Read on the same page instead.
- if (EXTENSION_IS_BROWSER_EDGE) {
- data = await utilReadFile(data);
- }
+ data = await utilReadFile(data);
return utilBackend().translator.database.importDictionary(data, progress, details);
}