mirror of
https://github.com/stefanpejcic/openpanel
synced 2025-06-26 18:28:26 +00:00
9 lines
290 B
TypeScript
9 lines
290 B
TypeScript
export const getLastLocation = (): string => {
|
|
const lastLocation = localStorage.getItem("devtools:last-location");
|
|
return lastLocation || "/overview";
|
|
};
|
|
|
|
export const setLastLocation = (location: string): void => {
|
|
localStorage.setItem("devtools:last-location", location);
|
|
};
|