nicolium: rename other temporary storage keys
Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
@ -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,
|
||||
|
||||
@ -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,
|
||||
|
||||
@ -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],
|
||||
|
||||
Reference in New Issue
Block a user