Fix repubblica.it after page reload

master
Davide Saurino 2018-12-11 12:02:43 +01:00
parent aa691ac6c9
commit e611f56153
1 changed files with 3 additions and 3 deletions

View File

@ -35,9 +35,9 @@ if (window.location.href.indexOf("bizjournals.com") !== -1) {
}
if (location.href.includes("/ws/detail/")) {
const paywall = document.getElementsByClassName('paywall');
if (paywall && paywall.length > 0) {
paywall[0].toggleAttribute('amp-access-hide');
const paywall = document.querySelector('.paywall[amp-access-hide]');
if (paywall) {
paywall.removeAttribute('amp-access-hide');
}
}
}