File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed
utils/editors/html-editor/v2.0 Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change 22
33<!DOCTYPE html>
44
5- < html >
5+ < html lang = en >
66
77 < head >
88 < meta charset =utf-8 >
@@ -460,15 +460,15 @@ <h1 slot=seo-hdr class=visually-hidden>html editor</h1>
460460
461461
462462 on . change = function ( ) {
463-
464- console . log ( 'on.change' ) ;
465-
463+ //console.log('on.change');
464+ document . title = '💾 ' + document . title ;
465+
466466 } //change
467467
468468
469- set . title = function ( ) {
469+ set . title = function ( title ) {
470470
471- document . title = file . name || file . filename ;
471+ document . title = title ;
472472
473473 } //title
474474
@@ -491,7 +491,8 @@ <h1 slot=seo-hdr class=visually-hidden>html editor</h1>
491491 editor . filename ( file ) ;
492492 editor . filename . save . hide ( ) ;
493493 filemod . cur = file ;
494- set . title ( ) ;
494+ var title = file . name || file . filename ;
495+ set . title ( title ) ;
495496 }
496497
497498 menu . close ( ) ;
You can’t perform that action at this time.
0 commit comments