fix: 🐛 Fix setting up indexed db when user logins first time (#2211)

This commit is contained in:
Zhihe Li committed 2024-04-12 14:55:33 -04:00
1 parent 8be4e93a3c
commit 9f11e8a25d
1 file changed
+1 -1
+1 -1
View File
@@ -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));
}