Skip to content

Commit 84fec3e

Browse files
committed
chore: use Document instead of deprecated HTMLDocument
1 parent 821011a commit 84fec3e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

packages/chrome-extension/src/detector.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,6 @@ function detect(win: Window) {
8080
}, 100)
8181
}
8282

83-
if (document instanceof HTMLDocument) {
83+
if (document instanceof Document) {
8484
detect(window)
8585
}

packages/firefox-extension/src/detector.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,6 @@ function detect(win: Window) {
8080
}, 100)
8181
}
8282

83-
if (document instanceof HTMLDocument) {
83+
if (document instanceof Document) {
8484
detect(window)
8585
}

packages/firefox-extension/src/injection.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
if (document instanceof HTMLDocument) {
1+
if (document instanceof Document) {
22
const content = chrome.runtime.getURL('dist/prepare.js')
33
const script = document.createElement('script')
44
script.src = content

0 commit comments

Comments
 (0)