mirror of
https://github.com/vale981/tridactyl
synced 2025-03-05 09:31:41 -05:00
Fix a few type errors
This commit is contained in:
parent
5d2d1ec88b
commit
6cfdbf5d2f
3 changed files with 4 additions and 3 deletions
|
@ -136,8 +136,6 @@ export async function jumpToMatch(searchQuery, option) {
|
|||
const walker = document.createTreeWalker(
|
||||
document,
|
||||
NodeFilter.SHOW_TEXT,
|
||||
null,
|
||||
false,
|
||||
)
|
||||
const nodes = []
|
||||
let node
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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) => {
|
||||
|
|
Loading…
Add table
Reference in a new issue