aboutsummaryrefslogtreecommitdiff
path: root/lib/util.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/util.js')
-rw-r--r--lib/util.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/util.js b/lib/util.js
index 2c0cf03..5546716 100644
--- a/lib/util.js
+++ b/lib/util.js
@@ -6,6 +6,7 @@ var u = exports
u.ssbRefRegex = /((?:@|%|&|ssb:\/\/%)[A-Za-z0-9\/+]{43}=\.[\w\d]+)/g
u.isRef = function (str) {
+ if (!str) return false
u.ssbRefRegex.lastIndex = 0
return u.ssbRefRegex.test(str)
}
@@ -38,7 +39,7 @@ u.toHTML = function (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'
+ if (el.nodeName === 'html') html = '<!doctype html>' + html + '\n'
return html
}