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