diff --git a/server/http_server.ts b/server/http_server.ts index 87987cc..b94e1af 100644 --- a/server/http_server.ts +++ b/server/http_server.ts @@ -33,7 +33,7 @@ export class HttpServer { this.hostname = options.hostname; this.port = options.port; this.app = new Application(); - this.user = options.user ?? Deno.env.get("SB_USER"); + this.user = options.user; this.clientAssetBundle = options.clientAssetBundle; } diff --git a/web/boot.ts b/web/boot.ts index cfa0909..45b744e 100644 --- a/web/boot.ts +++ b/web/boot.ts @@ -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.", + ); +}