|
|
@ -465,7 +465,7 @@ Version 4: Data URL when not a realtime link yet (new pad or "static" app)
|
|
|
|
|
|
|
|
|
|
|
|
if (!/^https*:\/\//.test(href)) {
|
|
|
|
if (!/^https*:\/\//.test(href)) {
|
|
|
|
// If it doesn't start with http(s), it should be a relative href
|
|
|
|
// If it doesn't start with http(s), it should be a relative href
|
|
|
|
if (!/^\//.test(href)) { return ret; }
|
|
|
|
if (!/^\//.test(href)) { return ret; } // XXX this will allow protocol relative URLs
|
|
|
|
idx = href.indexOf('/#');
|
|
|
|
idx = href.indexOf('/#');
|
|
|
|
ret.type = href.slice(1, idx);
|
|
|
|
ret.type = href.slice(1, idx);
|
|
|
|
if (idx === -1) { return ret; }
|
|
|
|
if (idx === -1) { return ret; }
|
|
|
|