Archived
1
0
This commit is contained in:
Jeff Becker 2019-03-02 11:28:48 -05:00
parent 3807561ca1
commit 0176b7f038
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

View File

@ -52,11 +52,12 @@
var e = document.getElementById("post_body_{{post.PostHash}}");
if(e) {
var u = new URL(j[0].ReferencedURI);
console.log(u);
if(u.protocol === "https:" || u.protocol === "http:") {
var link = document.createElement("a");
link.href = u.toString();
link.innerText = "[Link]";
e.appendChild(txt);
e.appendChild(link);
}
}
else throw "wut";