Alert when indexeddb not available

This commit is contained in:
Zef Hemel
2023-05-24 05:42:24 +02:00
parent 863b92df6a
commit c746d77a6b
2 changed files with 7 additions and 1 deletions
+6
View File
@@ -32,3 +32,9 @@ if (navigator.serviceWorker) {
"Not launching service worker, likely because not running from localhost or over HTTPs. This means SilverBullet will not be available offline.",
);
}
if (!globalThis.indexedDB) {
alert(
"SilverBullet requires IndexedDB to operate and it is not available in your browser. Please use a recent version of Chrome, Firefox (not in private mode) or Safari.",
);
}