aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/bg/js/util.js9
1 files changed, 1 insertions, 8 deletions
diff --git a/ext/bg/js/util.js b/ext/bg/js/util.js
index ea307b6b..cdd5ec31 100644
--- a/ext/bg/js/util.js
+++ b/ext/bg/js/util.js
@@ -456,14 +456,7 @@ function jsonLoadInt(url) {
*/
function zipLoadDb(archive, indexLoaded, termsLoaded, kanjiLoaded) {
- return JSZip.loadAsync(archive).then(files => {
- const fileMap = {};
- files.forEach((path, file) => {
- fileMap[path] = file;
- });
-
- return fileMap;
- }).then(files => {
+ return JSZip.loadAsync(archive).then(files => files.files).then(files => {
const indexFile = files['index.json'];
if (!indexFile) {
return Promise.reject('no dictionary index found in archive');