File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -394,12 +394,13 @@ <h3 class="font-bold text-gray-900 mb-1 uppercase text-xs tracking-wider">MIT Li
394394 let app = null ;
395395 let filename = "document" ;
396396 function exportName ( ) {
397- // Strip existing __HH_mm suffix and (N) copy suffixes, then append current time
398- const base = filename . replace ( / \( \d + \) $ / , '' ) . replace ( / _ _ \d { 2 } _ \d { 2 } $ / , '' ) . trimEnd ( ) ;
397+ // Strip existing __HH_mm_ss suffix and (N) copy suffixes, then append current time
398+ const base = filename . replace ( / \( \d + \) $ / , '' ) . replace ( / _ _ \d { 2 } _ \d { 2 } ( _ \d { 2 } ) ? $ / , '' ) . trimEnd ( ) ;
399399 const now = new Date ( ) ;
400400 const hh = String ( now . getHours ( ) ) . padStart ( 2 , '0' ) ;
401401 const mm = String ( now . getMinutes ( ) ) . padStart ( 2 , '0' ) ;
402- return `${ base } __${ hh } _${ mm } .note` ;
402+ const ss = String ( now . getSeconds ( ) ) . padStart ( 2 , '0' ) ;
403+ return `${ base } __${ hh } _${ mm } _${ ss } .note` ;
403404 }
404405 let page = 0 ;
405406 let originalFileSize = 0 ;
Original file line number Diff line number Diff line change 1- const CACHE_NAME = 'boox-optimizer-v37 ' ;
1+ const CACHE_NAME = 'boox-optimizer-v38 ' ;
22
33const APP_SHELL = [
44 './' ,
You can’t perform that action at this time.
0 commit comments