backup: snapshot before optimization
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
var themeMod = require('./utils/theme')
|
||||
|
||||
App({
|
||||
onLaunch: function () {
|
||||
var settings = wx.getStorageSync('user_settings')
|
||||
if (!settings) {
|
||||
wx.setStorageSync('user_settings', {
|
||||
planId: 'beginner',
|
||||
dailyReminder: true,
|
||||
reminderTime: '08:00',
|
||||
voiceGuide: true,
|
||||
vibrate: true
|
||||
})
|
||||
}
|
||||
var streak = wx.getStorageSync('current_streak')
|
||||
if (!streak) {
|
||||
wx.setStorageSync('current_streak', { count: 0, lastDate: '' })
|
||||
}
|
||||
this.globalData.theme = themeMod.getCurrentTheme()
|
||||
},
|
||||
|
||||
globalData: {
|
||||
planId: 'beginner',
|
||||
theme: null
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user