persist fileHandle to IDB across sessions

This commit is contained in:
dwelle
2021-06-12 22:36:00 +02:00
parent 6dee02e320
commit ba705a099a
7 changed files with 71 additions and 3 deletions
+4
View File
@@ -97,6 +97,10 @@ export const STORAGE_KEYS = {
LOCAL_STORAGE_LIBRARY: "excalidraw-library",
} as const;
export const IDB_KEYS = {
fileHandle: "fileHandle",
} as const;
// time in milliseconds
export const TAP_TWICE_TIMEOUT = 300;
export const TOUCH_CTX_MENU_TIMEOUT = 500;