Skip to content

Commit 823da07

Browse files
committed
update storage handler for the future update
1 parent 40d2960 commit 823da07

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

browser/main/lib/dataApi/resolveStorageData.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,14 @@ function resolveStorageData (storageCache) {
2828
storage.version = '1.0'
2929
}
3030

31-
if (storage.version === '1.0') {
31+
let version = parseInt(storage.version, 10)
32+
if (version >= 1) {
33+
if (version > 1) {
34+
console.log('The repository version is newer than one of current app.')
35+
}
3236
return Promise.resolve(storage)
3337
}
38+
3439
console.log('Transform Legacy storage', storage.path)
3540
return migrateFromV6Storage(storage.path)
3641
.then(() => storage)

0 commit comments

Comments
 (0)