mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-23 00:04:06 +00:00
Add comfyui-electron-types dependency (#1459)
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
import { ElectronAPI } from '@comfyorg/comfyui-electron-types'
|
||||
|
||||
export function isElectron() {
|
||||
return 'electronAPI' in window && window['electronAPI'] !== undefined
|
||||
}
|
||||
|
||||
export function electronAPI() {
|
||||
return window['electronAPI'] as ElectronAPI
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user