mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Make regex case-insensitive
This commit is contained in:
@@ -34,7 +34,7 @@ function constrainBodyRelativeIframes() {
|
||||
if (iframe.offsetParent === document.body) {
|
||||
let heightAttribute = iframe.style.height;
|
||||
|
||||
if (/%|vw|vh$/.test(heightAttribute)) {
|
||||
if (/%|vw|vh$/i.test(heightAttribute)) {
|
||||
iframe.classList.add("nnw-constrained");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user