nicolium: rename other temporary storage keys

Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
nicole mikołajczyk
2026-03-02 21:32:13 +01:00
parent 96ca3c6ebc
commit 29ac4cc790
3 changed files with 10 additions and 10 deletions

View File

@ -30,9 +30,9 @@ const prepareRequest =
const app = await dispatch(createProviderApp());
const { client_id, redirect_uri } = app;
localStorage.setItem('plfe:external:app', JSON.stringify(app));
localStorage.setItem('plfe:external:baseurl', baseURL);
localStorage.setItem('plfe:external:scopes', scopes);
localStorage.setItem('nicolium:external:app', JSON.stringify(app));
localStorage.setItem('nicolium:external:baseurl', baseURL);
localStorage.setItem('nicolium:external:scopes', scopes);
const params = {
provider,

View File

@ -56,9 +56,9 @@ const externalAuthorize = (instance: Instance, baseURL: string) => {
scope: scopes,
});
localStorage.setItem('plfe:external:app', JSON.stringify(app));
localStorage.setItem('plfe:external:baseurl', baseURL);
localStorage.setItem('plfe:external:scopes', scopes);
localStorage.setItem('nicolium:external:app', JSON.stringify(app));
localStorage.setItem('nicolium:external:baseurl', baseURL);
localStorage.setItem('nicolium:external:scopes', scopes);
window.location.href = `${baseURL}/oauth/authorize?${query.toString()}`;
});
@ -73,10 +73,10 @@ const externalLogin = (host: string) => {
};
const loginWithCode = (code: string) => (dispatch: AppDispatch) => {
const app = JSON.parse(localStorage.getItem('plfe:external:app')!);
const app = JSON.parse(localStorage.getItem('nicolium:external:app')!);
const { client_id, client_secret, redirect_uri } = app;
const baseURL = localStorage.getItem('plfe:external:baseurl')!;
const scope = localStorage.getItem('plfe:external:scopes')!;
const baseURL = localStorage.getItem('nicolium:external:baseurl')!;
const scope = localStorage.getItem('nicolium:external:scopes')!;
const params = {
client_id,

View File

@ -121,7 +121,7 @@ const ScrollableList = React.forwardRef<VirtuosoHandle, IScrollableList>(
const { state: locationState } = useLocation();
// Preserve scroll position
const scrollDataKey = `plfe:scrollData:${scrollKey}:${locationState.key}`;
const scrollDataKey = `nicolium:scrollData:${scrollKey}:${locationState.key}`;
const scrollData: SavedScrollPosition | null = useMemo(
() => JSON.parse(sessionStorage.getItem(scrollDataKey)!),
[scrollDataKey],