File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed
utils/editors/html-editor Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change 4646
4747
4848
49-
5049 < script >
5150/*
5251 navigator.serviceWorker.register('/service-worker.js')
7675
7776 </ script >
7877
79-
78+
8079
8180
8281
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
You can’t perform that action at this time.
0 commit comments