fix: remove alert modal from localForage error case (#1676)

This commit is contained in:
Tony Zhang 2018-08-28 14:48:10 -07:00 committed by Shawn Erquhart
parent 71987c002c
commit 4f3116de4d

View File

@ -9,8 +9,8 @@ function localForageTest() {
})
.catch(err => {
if (err.code === 22) {
const message = `Unable to set localStorage key. Quota exceeded! Full disk?`;
return alert(`${message}\n\n${err}`);
const message = 'Unable to set localStorage key. Quota exceeded! Full disk?';
console.warn(message);
}
console.log(err);
});