Merge branch 'master' into feature/Add-bloomberg-qunit

master
Tom 2019-10-27 16:04:02 +02:00 committed by GitHub
commit bf53ed7443
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 83 additions and 77 deletions

View File

@ -96,6 +96,12 @@ if (window.location.href.indexOf("bloombergquint.com") !== -1) {
removeDOMElement(articlesLeftModal, paywall);
}
if (window.location.href.indexOf("bloomberg.com") !== -1) {
console.log('inside bloomberg')
const paywall = document.getElementById('paywall-banner');
removeDOMElement(paywall);
}
function removeDOMElement(...elements) {
for (let element of elements) {
if (element) element.remove();