fix: 🐛 Fix setting up indexed db when user logins first time (#2211)
This commit is contained in:
1 parent
8be4e93a3c
commit
9f11e8a25d
1 file changed
+1
-1
@@ -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));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user