aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2017-09-12 14:12:40 -0700
committerAlex Yatskov <alex@foosoft.net>2017-09-12 14:12:40 -0700
commit28364b97b0dcc72ecde43aad32f8c58561895382 (patch)
treee53257a1852653c8b8f55e6fd27eac02e85fb26b /ext/bg/js
parentaf93d446de6548eb3753a5ca36c42d9c8c8a3730 (diff)
hopeful workaround to firefox crash
Diffstat (limited to 'ext/bg/js')
-rw-r--r--ext/bg/js/database.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/bg/js/database.js b/ext/bg/js/database.js
index 71179ed6..4a4f5e82 100644
--- a/ext/bg/js/database.js
+++ b/ext/bg/js/database.js
@@ -171,7 +171,7 @@ class Database {
});
}
- await this.db.terms.bulkAdd(rows);
+ await this.db.terms.bulkAdd(utilIsolate(rows));
};
const kanjiDataLoaded = async (title, entries, total, current) => {
@@ -191,7 +191,7 @@ class Database {
});
}
- await this.db.kanji.bulkAdd(rows);
+ await this.db.kanji.bulkAdd(utilIsolate(rows));
};
const tagDataLoaded = async (title, entries, total, current) => {
@@ -212,7 +212,7 @@ class Database {
rows.push(row);
}
- await this.db.tagMeta.bulkAdd(rows);
+ await this.db.tagMeta.bulkAdd(utilIsolate(rows));
};
return await Database.importDictionaryZip(