JS: Fix an unintended usage of event click.

This commit is contained in:
Schimon Jehudah, Adv. 2024-07-09 19:24:23 +03:00
parent 0785b167ad
commit 7712b7d9b8

View file

@ -3,7 +3,9 @@ window.onload = function(){
let follow = document.querySelector('#follow');
feedUrl = location.href.replace(/^https?:/, 'feed:');
follow.href = feedUrl;
follow.onclick = window.open(feedUrl, "_self");
follow.addEventListener ('click', function() {
window.open(feedUrl, "_self");
});
// Fix button subtome
document.querySelector('#subtome').href='https://www.subtome.com/#/subscribe?feeds='+location.href;
// Convert ISO8601 To UTC