mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-15 11:27:46 +01:00
refac
This commit is contained in:
@@ -52,7 +52,7 @@
|
||||
}
|
||||
|
||||
goto(redirectPath);
|
||||
sessionStorage.removeItem('redirectPath');
|
||||
localStorage.removeItem('redirectPath');
|
||||
}
|
||||
};
|
||||
|
||||
@@ -125,7 +125,7 @@
|
||||
}
|
||||
|
||||
localStorage.token = token;
|
||||
await setSessionUser(sessionUser, sessionStorage.getItem('redirectPath') || null);
|
||||
await setSessionUser(sessionUser, localStorage.getItem('redirectPath') || null);
|
||||
};
|
||||
|
||||
let onboarding = false;
|
||||
@@ -159,7 +159,7 @@
|
||||
goto(redirectPath || '/');
|
||||
} else {
|
||||
if (redirectPath) {
|
||||
sessionStorage.setItem('redirectPath', redirectPath);
|
||||
localStorage.setItem('redirectPath', redirectPath);
|
||||
}
|
||||
}
|
||||
await oauthCallbackHandler();
|
||||
|
||||
Reference in New Issue
Block a user