Files
Folo/packages/internal/utils/src/ns.ts
T
Innei 4d746522f1 refactor: remove unused files and clean up project structure
- Deleted obsolete configuration files and unused components across various packages.
- Updated package.json files to reflect the removal of dependencies.
- Cleaned up code by removing unnecessary exports and unused imports in multiple modules.

Signed-off-by: Innei <tukon479@gmail.com>
2025-04-28 20:58:51 +08:00

12 lines
287 B
TypeScript

const ns = "follow"
export const getStorageNS = (key: string) => `${ns}:${key}`
export const clearStorage = () => {
for (let i = 0; i < localStorage.length; i++) {
const key = localStorage.key(i)
if (key && key.startsWith(ns)) {
localStorage.removeItem(key)
}
}
}