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

This commit is contained in:
Tom 2019-10-27 16:04:02 +02:00 committed by GitHub
commit f8f5ad665b

View file

@ -96,6 +96,12 @@ if (window.location.href.indexOf("bloombergquint.com") !== -1) {
removeDOMElement(articlesLeftModal, paywall); 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) { function removeDOMElement(...elements) {
for (let element of elements) { for (let element of elements) {
if (element) element.remove(); if (element) element.remove();