Issue #3 - getAttribute in Chrome

This commit is contained in:
tobimori 2020-03-16 14:59:23 +01:00
parent 5ea10b1d22
commit 2779528560

View File

@ -19,8 +19,7 @@ const observer = new MutationObserver(function (mutations, me) {
});
// check if article is locked, then start the observer
d.getElementsByTagName("meta")[1].getAttribute("name") == "isPremiumArticle" &&
d.getElementsByTagName("meta")[1].getAttribute("content") == "1" &&
d.getElementsByClassName("vrm-premium") &&
observer.observe(d, {
childList: true,
subtree: true