mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-29 10:42:44 +00:00
Add missing electron mock API
Co-Authored-By: Chenlei Hu <hcl@comfy.org>
This commit is contained in:
@@ -54,7 +54,11 @@ const mockElectronAPI: Plugin = {
|
|||||||
getElectronVersion: () => Promise.resolve('1.0.0'),
|
getElectronVersion: () => Promise.resolve('1.0.0'),
|
||||||
getComfyUIVersion: () => '9.9.9',
|
getComfyUIVersion: () => '9.9.9',
|
||||||
getPlatform: () => 'win32',
|
getPlatform: () => 'win32',
|
||||||
changeTheme: () => {}
|
changeTheme: () => {},
|
||||||
|
Config: {
|
||||||
|
setWindowStyle: () => {},
|
||||||
|
getWindowStyle: () => Promise.resolve('default')
|
||||||
|
}
|
||||||
};`
|
};`
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user