From 8c3967dcd515a1511e8d87e7bf4fc3dbcbebf66b Mon Sep 17 00:00:00 2001 From: eight Date: Fri, 9 Nov 2018 10:06:46 +0800 Subject: [PATCH] Add: add a warning --- background/db.js | 1 + 1 file changed, 1 insertion(+) diff --git a/background/db.js b/background/db.js index fc8b6fa1..9e28eac3 100644 --- a/background/db.js +++ b/background/db.js @@ -88,6 +88,7 @@ const db = (() => { chromeLocal.set({dbInChromeStorage: true}, ignoreChromeError); if (err) { chromeLocal.setValue('dbInChromeStorageReason', workerUtil.cloneError(err)); + console.warn(`Stylus failed to access indexedDB. Switched to storage API.`, err); } localStorage.dbInChromeStorage = 'true'; }