Add: add a warning
This commit is contained in:
parent
0b74a9bfdd
commit
8c3967dcd5
|
@ -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';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user