mirror of
https://github.com/psforever/PSFPortal.git
synced 2026-07-16 08:55:14 +00:00
Enable foreign profile view
This commit is contained in:
parent
20946fdb43
commit
cb918033a6
14 changed files with 248 additions and 125 deletions
|
|
@ -24,9 +24,11 @@ export async function logout() {
|
|||
page("/")
|
||||
}
|
||||
|
||||
loggedIn.subscribe((v) => {
|
||||
console.log(loggedIn, v)
|
||||
})
|
||||
if (process.env.NODE_ENV !== "production") {
|
||||
loggedIn.subscribe((v) => {
|
||||
console.log("Login state: ", v)
|
||||
})
|
||||
}
|
||||
|
||||
export async function get_initial_state() {
|
||||
try {
|
||||
|
|
@ -42,7 +44,6 @@ export async function get_initial_state() {
|
|||
if (e.response.status === 403) {
|
||||
console.log("User not logged in / not admin!")
|
||||
clear_user_state();
|
||||
return false;
|
||||
} else {
|
||||
console.log("Unknown login error", e)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue