Redo logout

This commit is contained in:
Manav Rathi
2024-05-15 11:44:00 +05:30
parent 76a09b1473
commit 0bcc6e3f3f
21 changed files with 151 additions and 116 deletions

View 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();
};