Skip to content

Commit 5712f41

Browse files
committed
Update
1 parent 3218d09 commit 5712f41

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

web/index.html

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff 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;

web/sw.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const CACHE_NAME = 'boox-optimizer-v37';
1+
const CACHE_NAME = 'boox-optimizer-v38';
22

33
const APP_SHELL = [
44
'./',

0 commit comments

Comments
 (0)