Fix a few type errors

This commit is contained in:
Oliver Blanthorn 2023-03-10 23:30:05 +01:00
parent 5d2d1ec88b
commit 6cfdbf5d2f
No known key found for this signature in database
GPG key ID: 2BB8C36BB504BFF3
3 changed files with 4 additions and 3 deletions

View file

@ -136,8 +136,6 @@ export async function jumpToMatch(searchQuery, option) {
const walker = document.createTreeWalker(
document,
NodeFilter.SHOW_TEXT,
null,
false,
)
const nodes = []
let node

View file

@ -715,6 +715,9 @@ class Hint {
right: rect.right + offsetLeft,
width: rect.width,
height: rect.height,
x: undefined,
y: undefined,
toJSON: () => {},
}
this.flag.textContent = name

View file

@ -298,7 +298,7 @@ export function getAllDocumentFrames(doc = document) {
Array.from(doc.getElementsByTagName("iframe")) as HTMLIFrameElement[] &
HTMLFrameElement[]
)
.concat(Array.from(doc.getElementsByTagName("frame")))
.concat(Array.from(doc.getElementsByTagName("frame")) as HTMLFrameElement[] & HTMLIFrameElement[])
.filter(frame => !frame.src.startsWith("moz-extension://"))
return frames.concat(
frames.reduce((acc, f) => {