分离方法

This commit is contained in:
lyswhut
2022-02-25 10:26:59 +08:00
parent 9528b10d01
commit 442b4fb30f
4 changed files with 12 additions and 7 deletions
+6
View File
@@ -41,3 +41,9 @@ exports.initSetting = (isShowErrorAlert = true) => {
global.appSetting = info.setting
global.appSettingVersion = info.version
}
exports.openDevTools = webContents => {
webContents.openDevTools({
mode: 'undocked',
})
}