|
@@ -16,7 +16,6 @@ let mainWindow
|
|
|
const winURL = process.env.NODE_ENV === 'development' ? `http://localhost:9080` : `http://localhost:8888/index.html`
|
|
|
|
|
|
app.commandLine.appendSwitch('ppapi-flash-path',app.getPath('pepperFlashSystemPlugin'))
|
|
|
-// app.commandLine.appendSwitch('ppapi-flash-version', '32.0.0.363')
|
|
|
|
|
|
function createWindow () {
|
|
|
|
|
@@ -43,16 +42,12 @@ function createWindow () {
|
|
|
},
|
|
|
})
|
|
|
|
|
|
- // 配置ESC键退出全屏
|
|
|
- // globalShortcut.register('ESC', () => {
|
|
|
- // mainWindow.setFullScreen(false)
|
|
|
- // })
|
|
|
-
|
|
|
mainWindow.loadURL(winURL)
|
|
|
|
|
|
//进入软件即开启全屏
|
|
|
mainWindow.setFullScreen(true)
|
|
|
|
|
|
+ // 打开开发者工具
|
|
|
// mainWindow.webContents.openDevTools();
|
|
|
|
|
|
mainWindow.once('ready-to-show', () => {
|