Add some comment to db.js

This commit is contained in:
eight 2018-10-11 22:46:34 +08:00
parent 25fd3a1c2b
commit 5cfea3933f

View File

@ -1,5 +1,12 @@
/* global tryCatch chromeLocal ignoreChromeError */
/* exported db */
/*
Initialize a database. There are some problems using IndexedDB in Firefox:
https://www.reddit.com/r/firefox/comments/74wttb/note_to_firefox_webextension_developers_who_use/
Some of them are fixed in FF59:
https://www.reddit.com/r/firefox/comments/7ijuaq/firefox_59_webextensions_can_use_indexeddb_when/
*/
'use strict';
const db = (() => {