We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a5e3e02 commit 25e7ceaCopy full SHA for 25e7cea
apps/renderer/src/initialize/migrates/index.ts
@@ -13,11 +13,14 @@ declare global {
13
export const doMigration = async () => {
14
const lastVersion = localStorage.getItem(appVersionKey)
15
if (!lastVersion || lastVersion === APP_VERSION) {
16
- localStorage.setItem(appVersionKey, APP_VERSION)
+ if (!lastVersion) {
17
+ localStorage.setItem(appVersionKey, APP_VERSION)
18
+ }
19
return
20
}
21
// NOTE: Add migration logic here
22
23
appLog(`Upgrade from ${lastVersion} to ${APP_VERSION}`)
24
window.__app_is_upgraded__ = true
25
26
0 commit comments