(key: string, handle: FileSystemFileHandle)
| 19 | |
| 20 | // Save a file handle with a timestamp |
| 21 | export async function saveHandle(key: string, handle: FileSystemFileHandle): Promise<void> { |
| 22 | await db.handles.put({ handle, timestamp: Date.now() }, key); |
| 23 | } |
| 24 | |
| 25 | // Load a file handle by key |
| 26 | export async function loadHandle(key: string): Promise<FileSystemFileHandle> { |