Correct rest parameter

master
magnolia1234 2019-10-19 23:24:33 +02:00 committed by GitHub
parent 930c5f5b82
commit f23f58d71b
1 changed files with 1 additions and 1 deletions

View File

@ -135,7 +135,7 @@ if (window.location.href.indexOf("bloombergquint.com") !== -1) {
removeDOMElement(articlesLeftModal, paywall);
}
function removeDOMElement(elements) {
function removeDOMElement(...elements) {
for (var element of elements) {
if (element)
element.remove();