Merge pull request #392 from alastairR/master

NZ Herald fix, missing curly brace
This commit is contained in:
ghost 2019-11-21 20:02:51 -08:00 committed by GitHub
commit 90a2ce2bc2

View file

@ -177,13 +177,13 @@ function removeDOMElement(...elements) {
} }
} }
function removeClassesByPrefix(el, prefix) function removeClassesByPrefix(el, prefix) {
{
for (let i = el.classList.length - 1; i >= 0; i--) { for (let i = el.classList.length - 1; i >= 0; i--) {
if(el.classList[i].startsWith(prefix)) { if(el.classList[i].startsWith(prefix))
el.classList.remove(el.classList[i]); el.classList.remove(el.classList[i]);
} }
} }
}
function pageContains(selector, text) { function pageContains(selector, text) {
let elements = document.querySelectorAll(selector); let elements = document.querySelectorAll(selector);