File tree 4 files changed +16
-8
lines changed
4 files changed +16
-8
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " micropad" ,
3
- "version" : " 4.4 .0" ,
3
+ "version" : " 4.5 .0" ,
4
4
"private" : true ,
5
5
"scripts" : {
6
6
"preinstall" : " python3 ../libs/build-libs.py && ./get_precache_files.py > src/extraPrecacheFiles.ts" ,
Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change @@ -257,18 +257,18 @@ async function hydrateStoreFromLocalforage() {
257
257
258
258
async function displayWhatsNew ( ) {
259
259
// some clean up of an old item, can be removed in the future
260
- localforage . removeItem ( 'oldMinorVersion' ) . catch ( e => console . error ( e ) ) ;
260
+ localforage . removeItem ( SettingsStorageKeys . OLD_MINOR_VERSION ) . catch ( e => console . error ( e ) ) ;
261
261
262
262
const minorVersion = store . getState ( ) . app . version . minor ;
263
- const oldMinorVersion = await SETTINGS_STORAGE . getItem < number > ( 'oldMinorVersion' ) ;
263
+ const oldMinorVersion = await SETTINGS_STORAGE . getItem < number > ( SettingsStorageKeys . OLD_MINOR_VERSION ) ;
264
264
if ( minorVersion === oldMinorVersion ) return ;
265
265
266
266
// Open "What's New"
267
267
setTimeout ( ( ) => {
268
268
store . dispatch ( actions . openModal ( 'whats-new-modal' ) ) ;
269
269
} , 0 ) ;
270
270
271
- SETTINGS_STORAGE . setItem < number > ( 'oldMinorVersion' , minorVersion ) . catch ( e => console . error ( e ) ) ;
271
+ SETTINGS_STORAGE . setItem < number > ( SettingsStorageKeys . OLD_MINOR_VERSION , minorVersion ) . catch ( e => console . error ( e ) ) ;
272
272
}
273
273
274
274
function notepadDownloadHandler ( ) {
Original file line number Diff line number Diff line change @@ -2,4 +2,5 @@ export const enum SettingsStorageKeys {
2
2
SHOULD_WORD_WRAP = 'shouldWordWrap' ,
3
3
SHOULD_SPELL_CHECK = 'shouldSpellCheck' ,
4
4
DUE_DATE_OPTS = 'dueDateOpts' ,
5
+ OLD_MINOR_VERSION = 'oldMinorVersion' ,
5
6
}
You can’t perform that action at this time.
0 commit comments