Make regex case-insensitive
This commit is contained in:
parent
a227d6124a
commit
470b8514e4
|
@ -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");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue