mirror of
https://github.com/ente-io/ente.git
synced 2025-08-13 17:57:31 +00:00
Redo logout
This commit is contained in:
17
web/packages/shared/storage/localForage.ts
Normal file
17
web/packages/shared/storage/localForage.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
import { haveWindow } from "@/next/env";
|
||||
|
||||
import localForage from "localforage";
|
||||
|
||||
if (haveWindow()) {
|
||||
localForage.config({
|
||||
name: "ente-files",
|
||||
version: 1.0,
|
||||
storeName: "files",
|
||||
});
|
||||
}
|
||||
|
||||
export default localForage;
|
||||
|
||||
export const clearFiles = async () => {
|
||||
await localForage.clear();
|
||||
};
|
Reference in New Issue
Block a user