Skip to content

Commit

Permalink
Forget about beta.0 projects
Browse files Browse the repository at this point in the history
  • Loading branch information
inukshuk committed Jul 13, 2017
1 parent a0316be commit af7ef59
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/browser/tropy.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ class Tropy extends EventEmitter {
locale: 'en', // app.getLocale() || 'en',
theme: 'light',
recent: [],
win: {},
version
win: {}
}

constructor() {
Expand Down Expand Up @@ -256,6 +255,10 @@ class Tropy extends EventEmitter {
}

migrate(state) {
if (!state.version || state.version === '1.0.0-beta.0') {
state.recent = []
}

state.version = this.version
state.uuid = state.uuid || uuid()

Expand Down

0 comments on commit af7ef59

Please sign in to comment.