Skip to content

Commit 1f13d22

Browse files
save file
1 parent d244e06 commit 1f13d22

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

utils/editors/html-editor/html-editor.html

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@
4646

4747

4848

49-
5049
<script>
5150
/*
5251
navigator.serviceWorker.register('/service-worker.js')
@@ -76,7 +75,7 @@
7675

7776
</script>
7877

79-
78+
8079

8180

8281

@@ -105,6 +104,9 @@
105104
var log;
106105

107106

107+
108+
109+
108110
//:
109111

110112

@@ -315,7 +317,8 @@ <h1 slot=seo-hdr class=visually-hidden>html editor</h1>
315317
var on = {};
316318
var set = {};
317319

318-
320+
321+
319322
//:
320323

321324

@@ -461,7 +464,11 @@ <h1 slot=seo-hdr class=visually-hidden>html editor</h1>
461464

462465
on.change = function(){
463466
//console.log('on.change');
464-
document.title = '💾 '+document.title;
467+
const SAVE_RE = /^\u{1F4BE}\uFE0F?/u;
468+
if (!SAVE_RE.test(document.title)) {
469+
document.title = "💾 " + document.title;
470+
}
471+
465472

466473
}//change
467474

0 commit comments

Comments
 (0)