修复`openDevTools`选项无效的问题
parent
b3ab05cc86
commit
342af62aea
|
@ -9,3 +9,4 @@
|
||||||
### 修复
|
### 修复
|
||||||
|
|
||||||
- 修复代理不生效的问题
|
- 修复代理不生效的问题
|
||||||
|
- 修复`openDevTools`选项无效的问题
|
||||||
|
|
|
@ -32,7 +32,9 @@ const handleResponse = (event, { status, data: { requestKey, result }, message }
|
||||||
}
|
}
|
||||||
const handleOpenDevTools = () => {
|
const handleOpenDevTools = () => {
|
||||||
if (global.modules.userApiWindow) {
|
if (global.modules.userApiWindow) {
|
||||||
global.modules.userApiWindow.webContents.openDevTools()
|
global.modules.userApiWindow.webContents.openDevTools({
|
||||||
|
mode: 'undocked',
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
mainOn(USER_API_RENDERER_EVENT_NAME.init, handleInit)
|
mainOn(USER_API_RENDERER_EVENT_NAME.init, handleInit)
|
||||||
|
|
Loading…
Reference in New Issue