Skip to content

Commit b3f91c1

Browse files
Change interface check to HTMLDocument again (#518)
1 parent e5fe7f0 commit b3f91c1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/content-scope-features.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ import platformFeatures from 'ddg:platformFeatures'
88
function shouldRun () {
99
// don't inject into non-HTML documents (such as XML documents)
1010
// but do inject into XHTML documents
11-
if (document instanceof Document === false && (
11+
// Should check HTMLDocument as Document is an alias for XMLDocument also.
12+
if (document instanceof HTMLDocument === false && (
1213
document instanceof XMLDocument === false ||
1314
document.createElement('div') instanceof HTMLDivElement === false
1415
)) {

0 commit comments

Comments
 (0)