fixes trail sorting && secure cookie
This commit is contained in:
@@ -5,5 +5,5 @@ import { currentUser } from '$lib/stores/user_store';
|
||||
pb.authStore.loadFromCookie(document.cookie)
|
||||
pb.authStore.onChange(() => {
|
||||
currentUser.set(pb.authStore.model as User)
|
||||
document.cookie = pb.authStore.exportToCookie({ httpOnly: false })
|
||||
document.cookie = pb.authStore.exportToCookie({ httpOnly: false, secure: location.protocol === "https:" })
|
||||
}, true)
|
||||
Reference in New Issue
Block a user