diff --git a/src/dialog/browser/storage.ts b/src/dialog/browser/storage.ts index 13786e2..0cf255f 100644 --- a/src/dialog/browser/storage.ts +++ b/src/dialog/browser/storage.ts @@ -197,7 +197,7 @@ const DIALOG_V1_TYPES_TO_EXTS: Record = { } export function migrate_localStorage() { const now = Date.now() - const version = parseInt(localStorage.getItem(STORAGE_VERSION_KEY) || '', 10) + const version = parseInt(localStorage.getItem(STORAGE_VERSION_KEY) || '', 10) || 0 if (version < 2) { console.log('Dialog: updating localStorage to version 2') const metadata: FilesMetadata = {}