summaryrefslogtreecommitdiff
path: root/ext/bg/js/native-simple-dom-parser.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/bg/js/native-simple-dom-parser.js')
-rw-r--r--ext/bg/js/native-simple-dom-parser.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/bg/js/native-simple-dom-parser.js b/ext/bg/js/native-simple-dom-parser.js
index 2aa4134d..4e0d89ea 100644
--- a/ext/bg/js/native-simple-dom-parser.js
+++ b/ext/bg/js/native-simple-dom-parser.js
@@ -43,4 +43,8 @@ class NativeSimpleDOMParser {
getTextContent(element) {
return element.textContent;
}
+
+ static isSupported() {
+ return typeof DOMParser !== 'undefined';
+ }
}