mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-08 01:27:31 +00:00
12 lines
332 B
TypeScript
12 lines
332 B
TypeScript
// this is temporary util function. create error handling logic for localStorage and delete this.
|
|
export const tempLocalStorage = (key: string) => {
|
|
const value = localStorage.getItem(key);
|
|
|
|
if (value === null || value === "") {
|
|
console.warn("No value found in localStorage for key");
|
|
return "";
|
|
}
|
|
|
|
return value;
|
|
};
|