Skip to content

Commit a2c28e2

Browse files
save file
1 parent 76b6567 commit a2c28e2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,6 @@
152152

153153

154154
icon.def = $('link[rel~=icon]').href;
155-
console.log(icon.def);
156155

157156

158157
initdom(document.body);
@@ -468,6 +467,8 @@ <h1 slot=seo-hdr class=visually-hidden>html editor</h1>
468467
on.change = function(){
469468
//console.log('on.change');
470469
set.favicon(icon.save);
470+
471+
471472
/*
472473
const SAVE_RE = /^\u{1F4BE}\uFE0F?/u;
473474
if (!SAVE_RE.test(document.title)) {
@@ -482,7 +483,6 @@ <h1 slot=seo-hdr class=visually-hidden>html editor</h1>
482483
set.title = function(title){
483484

484485
document.title = title;
485-
set.favicon(icon.def);
486486

487487
}//title
488488

@@ -507,6 +507,7 @@ <h1 slot=seo-hdr class=visually-hidden>html editor</h1>
507507
filemod.cur = file;
508508
var title = file.name||file.filename;
509509
set.title(title);
510+
set.favicon(icon.def);
510511
}
511512

512513
menu.close();

0 commit comments

Comments
 (0)