Make regex case-insensitive

This commit is contained in:
Nate Weaver 2020-11-20 11:28:59 -06:00
parent a227d6124a
commit 470b8514e4
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ function constrainBodyRelativeIframes() {
if (iframe.offsetParent === document.body) { if (iframe.offsetParent === document.body) {
let heightAttribute = iframe.style.height; let heightAttribute = iframe.style.height;
if (/%|vw|vh$/.test(heightAttribute)) { if (/%|vw|vh$/i.test(heightAttribute)) {
iframe.classList.add("nnw-constrained"); iframe.classList.add("nnw-constrained");
} }
} }