js/index : use linkify.js origin_target _blank

Signed-off-by: Ari Archer <ari.web.xyz@gmail.com>
This commit is contained in:
Ari Archer 2023-04-06 23:51:11 +03:00
parent 3e0e14b37c
commit 9bdfb915c9

View file

@ -84,7 +84,7 @@ async function main() {
mkelem("a", `#${id} by ${post[0]}`, null, { mkelem("a", `#${id} by ${post[0]}`, null, {
href: `${COMMENT_SITE}/#${id}`, href: `${COMMENT_SITE}/#${id}`,
}), }),
mkelem("pre", linkify(post[1], COMMENT_SITE)), mkelem("pre", linkify(post[1], COMMENT_SITE, "_blank")),
], ],
comment comment
); );