aboutsummaryrefslogtreecommitdiff
path: root/lib/util.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/util.js')
-rw-r--r--lib/util.js4
1 files changed, 1 insertions, 3 deletions
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 = '<!doctype html><link rel="icon" href="static/hermie.ico" type="image/x-icon"/>' + html + '\n'
- return html
+ return el.outerHTML || String(el)
}
u.hyperwrap = function (fn) {