mirror of
https://github.com/tobspr/shapez.io.git
synced 2024-10-27 20:34:29 +00:00
Add nicer error message when indexeddb is not available
This commit is contained in:
parent
ac15fefff0
commit
fec5dfd43c
@ -28,6 +28,9 @@ export class StorageImplBrowserIndexedDB extends StorageInterface {
|
|||||||
const request = window.indexedDB.open("app_storage", 10);
|
const request = window.indexedDB.open("app_storage", 10);
|
||||||
request.onerror = event => {
|
request.onerror = event => {
|
||||||
logger.error("IDB error:", event);
|
logger.error("IDB error:", event);
|
||||||
|
alert(
|
||||||
|
"Sorry, it seems your browser has blocked the access to the storage system. This might be the case if you are browsing in private mode for example. I recommend to use google chrome or disable private browsing."
|
||||||
|
);
|
||||||
reject("Indexed DB access error");
|
reject("Indexed DB access error");
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user