🌐 AI搜索 & 代理 主页
Skip to content

Commit 427b728

Browse files
authored
Update safe-types.js
1 parent 9120531 commit 427b728

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/utils/safe-types.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,5 @@ import { hasWindowSupport } from './env'
77
const w = hasWindowSupport ? window : {}
88

99
export const HTMLElement = hasWindowSupport ? w.HTMLElement : class HTMLElement extends Object {}
10+
11+
export const File = hasWindowSupport ? w.File : class File extends Object {}

0 commit comments

Comments
 (0)