parent
230d4abe0c
commit
30f8ab773f
5 changed files with 11 additions and 14 deletions
|
|
@ -34,7 +34,7 @@
|
|||
|
||||
onAuthStateChanged(auth, async function (s) {
|
||||
authStore.set(s);
|
||||
authInitialized.set(true);
|
||||
authInitialized.set(true);
|
||||
if (s) {
|
||||
if (browser && 'cookieStore' in window) await cookieStore.set('logged_in', 'true');
|
||||
else {
|
||||
|
|
@ -51,10 +51,6 @@
|
|||
return authStore.subscribe(async function (user) {
|
||||
// console.log(`store get ${JSON.stringify(user)}`);
|
||||
|
||||
if (user != null) {
|
||||
connectToWebsocket();
|
||||
}
|
||||
|
||||
// reloading permissions
|
||||
if (get(currentPermissions).length == 0 && user != null) {
|
||||
// need update
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue