From 9f11e8a25de5cb89e27b143803d8b5f91755b6da Mon Sep 17 00:00:00 2001 From: Zhihe Li Date: Mon, 1 Apr 2024 17:43:55 -0400 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20Fix=20setting=20up=20inde?= =?UTF-8?q?xed=20db=20when=20user=20logins=20first=20time=20(#2211)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ui/admin/app/services/session.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/admin/app/services/session.js b/ui/admin/app/services/session.js index 5761b6019..183c36eac 100644 --- a/ui/admin/app/services/session.js +++ b/ui/admin/app/services/session.js @@ -14,7 +14,7 @@ export default class SessionService extends BaseSessionService { super.handleAuthentication(...arguments); const userId = this.data?.authenticated?.user_id; - const hostUrl = this.window.host; + const hostUrl = this.window.location.host; if (userId && hostUrl) { this.indexedDb.setup(formatDbName(userId, hostUrl)); }