Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitbbaa587

Browse files
committed
fix: firefox selection in iframe
1 parentfcc8418 commitbbaa587

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

‎src/asserts.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,10 @@ const isElement = (obj: any): obj is Element => {
4747
};
4848

4949
constisHTMLIFrameElement=(obj:any):obj isHTMLIFrameElement=>{
50-
returnobj.constructor.name==="HTMLIFrameElement";
50+
return(
51+
obj.constructor.name==="HTMLIFrameElement"||
52+
objinstanceofHTMLIFrameElement
53+
);
5154
};
5255

5356
constisDocument=(obj:any):obj isDocument=>{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp