提交 22d93f9d 编写于 作者: B baiy 提交者: ninecents

update

上级 2a0ff7a3
......@@ -10,15 +10,15 @@ browserWindow.webContents.on('before-input-event', (event, input) => {
}
}
})
browserWindow.once('ready-to-show', () => {
browserWindow.show()
})
window.ctool = {}
window.ctool.isDevToolsOpened = function () {
return browserWindow.webContents.isDevToolsOpened();
}
window.ctool.toggleDevTools = function () {
if (window.ctool.isDevToolsOpened) {
return browserWindow.webContents.closeDevTools();
}
return browserWindow.webContents.openDevTools();
return browserWindow.webContents.toggleDevTools();
}
window.ctool.browserWindow = browserWindow;
\ No newline at end of file
......@@ -24,17 +24,15 @@
if (code.indexOf('ctool-') !== -1) {
tool = code.replace(/ctool-/g, "")
}
setToolCode(tool)
window.utools.createBrowserWindow(
'tool.html',
{
width: 1200,
minWidth: 900,
minHeight: 650,
height: 650,
show: false,
webPreferences: {
preload: 'utools_preload.js'
preload: 'tool_preload.js'
}
}
)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册