mirror of
https://github.com/vale981/tridactyl
synced 2025-03-05 09:31:41 -05:00
dom.ts: Fix typing error
This commit is contained in:
parent
368db055f8
commit
f7c4007e53
1 changed files with 2 additions and 2 deletions
|
@ -231,8 +231,8 @@ export function isVisible (element: Element) {
|
|||
* @param doc The document the frames should be fetched from
|
||||
*/
|
||||
export function getAllDocumentFrames(doc = document) {
|
||||
let frames = Array.from(doc.getElementsByTagName("iframe"))
|
||||
.concat(Array.from(doc.getElementsByTagName("frame")))
|
||||
let frames = (<HTMLIFrameElement[] & HTMLFrameElement[]>Array.from(doc.getElementsByTagName("iframe")))
|
||||
.concat((Array.from(doc.getElementsByTagName("frame"))))
|
||||
.filter((frame) => !frame.src.startsWith("moz-extension://"))
|
||||
return frames.concat(flatten(frames.map((x) => getAllDocumentFrames(x.contentDocument))))
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue