Add: add a warning

This commit is contained in:
eight 2018-11-09 10:06:46 +08:00
parent 0b74a9bfdd
commit 8c3967dcd5

View File

@ -88,6 +88,7 @@ const db = (() => {
chromeLocal.set({dbInChromeStorage: true}, ignoreChromeError); chromeLocal.set({dbInChromeStorage: true}, ignoreChromeError);
if (err) { if (err) {
chromeLocal.setValue('dbInChromeStorageReason', workerUtil.cloneError(err)); chromeLocal.setValue('dbInChromeStorageReason', workerUtil.cloneError(err));
console.warn(`Stylus failed to access indexedDB. Switched to storage API.`, err);
} }
localStorage.dbInChromeStorage = 'true'; localStorage.dbInChromeStorage = 'true';
} }