aboutsummaryrefslogtreecommitdiff
path: root/ext/fg
diff options
context:
space:
mode:
Diffstat (limited to 'ext/fg')
-rw-r--r--ext/fg/js/source.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/ext/fg/js/source.js b/ext/fg/js/source.js
index 4642de50..2e73be06 100644
--- a/ext/fg/js/source.js
+++ b/ext/fg/js/source.js
@@ -87,9 +87,11 @@ class TextSourceRange {
return false;
}
- const skip = ['RT', 'SCRIPT', 'STYLE'];
- if (skip.includes(node.nodeName.toUpperCase())) {
- return false;
+ switch (node.nodeName.toUpperCase()) {
+ case 'RT':
+ case 'SCRIPT':
+ case 'STYLE':
+ return false;
}
const style = window.getComputedStyle(node);