I'll get it right at some point...
All checks were successful
/ weblog.lol (push) Successful in 9s

This commit is contained in:
Gordon Pedersen 2024-05-11 16:50:09 +10:00
parent 3606b3879d
commit 3626dd7477

View file

@ -123,7 +123,7 @@ function fediverse() {
const data = JSON.parse(localStorage.getItem('fedi-social') || '{}') const data = JSON.parse(localStorage.getItem('fedi-social') || '{}')
document.querySelectorAll("a.external_url:not([href='{external_url}'])").forEach(el => { document.querySelectorAll("a.external_url:not([href='{external_url}'])").forEach(el => {
if(data.template){ if(data.template){
href = template.replace("{uri}", el.href) href = data.template.replace("{uri}", el.href)
const innerHTML = ` const innerHTML = `
<a href='${href}' target="_blank"><i class="fa fa-comment"></i></a> <a href='${href}' target="_blank"><i class="fa fa-comment"></i></a>
<a href='${href}' target="_blank"><i class="fa fa-star"></i></a> <a href='${href}' target="_blank"><i class="fa fa-star"></i></a>