From bc37b05926f3b5acff7905748607f4f0da5ac14e Mon Sep 17 00:00:00 2001 From: cel Date: Sat, 6 May 2017 17:37:42 -1000 Subject: Put shortcut icon in correct place --- lib/serve.js | 1 + lib/util.js | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/serve.js b/lib/serve.js index bce474c..d9cbfe7 100644 --- a/lib/serve.js +++ b/lib/serve.js @@ -987,6 +987,7 @@ Serve.prototype.wrapPage = function (title, searchQ) { h('meta', {charset: 'utf-8'}), h('title', title), h('meta', {name: 'viewport', content: 'width=device-width,initial-scale=1'}), + h('link', {rel: 'icon', href: render.toUrl('/static/hermie.ico'), type: 'image/x-icon'}), h('style', styles()) ), h('body', diff --git a/lib/util.js b/lib/util.js index 90fc55a..6a419f9 100644 --- a/lib/util.js +++ b/lib/util.js @@ -38,9 +38,7 @@ u.toHTML = function (el) { if (typeof el === 'string' || Array.isArray(el)) { return h('div', el).innerHTML } - var html = el.outerHTML || String(el) - if (el.nodeName === 'html') html = '' + html + '\n' - return html + return el.outerHTML || String(el) } u.hyperwrap = function (fn) { -- cgit v1.2.3