mirror of
https://github.com/supabase/supabase.git
synced 2026-10-06 01:45:10 +03:00
10 lines
269 B
TypeScript
10 lines
269 B
TypeScript
export const LOCAL_STORAGE_KEYS_ALLOWLIST = ['graphiql:theme', 'theme', 'supabaseDarkMode']
|
|
|
|
export function clearLocalStorage() {
|
|
for (const key in localStorage) {
|
|
if (!LOCAL_STORAGE_KEYS_ALLOWLIST.includes(key)) {
|
|
localStorage.removeItem(key)
|
|
}
|
|
}
|
|
}
|