We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 40d2960 commit 823da07Copy full SHA for 823da07
1 file changed
browser/main/lib/dataApi/resolveStorageData.js
@@ -28,9 +28,14 @@ function resolveStorageData (storageCache) {
28
storage.version = '1.0'
29
}
30
31
- if (storage.version === '1.0') {
+ 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
+ }
36
return Promise.resolve(storage)
37
38
+
39
console.log('Transform Legacy storage', storage.path)
40
return migrateFromV6Storage(storage.path)
41
.then(() => storage)
0 commit comments