JS: Fix an unintended usage of event click.
This commit is contained in:
parent
0785b167ad
commit
7712b7d9b8
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue