3 changed files with 12327 additions and 30 deletions
@ -1,27 +1,27 @@ |
|||||
const { app, BrowserWindow, Menu } = require('electron') |
// const { app, BrowserWindow, Menu } = require('electron')
|
||||
|
|
||||
try { |
// try {
|
||||
require('electron-reloader')(module, {}); |
// require('electron-reloader')(module, {});
|
||||
} catch (_) { } |
// } catch (_) { }
|
||||
const createWindow = () => { |
// const createWindow = () => {
|
||||
const win = new BrowserWindow({ |
// const win = new BrowserWindow({
|
||||
width: 1366, |
// width: 1366,
|
||||
height: 768, |
// height: 768,
|
||||
webPreferences: { |
// webPreferences: {
|
||||
// preload,
|
// // preload,
|
||||
nodeIntegration: true, |
// nodeIntegration: true,
|
||||
contextIsolation: false, |
// contextIsolation: false,
|
||||
}, |
// },
|
||||
}) |
// })
|
||||
Menu.setApplicationMenu(null); |
// Menu.setApplicationMenu(null);
|
||||
|
|
||||
console.log(process.env, process.env.NODE_ENV); |
// console.log(process.env, process.env.NODE_ENV);
|
||||
win.loadURL('http://localhost:5400') |
// win.loadURL('http://localhost:5400')
|
||||
// win.loadFile('./client/index.html')
|
// // win.loadFile('./client/index.html')
|
||||
|
|
||||
win.webContents.openDevTools() |
// win.webContents.openDevTools()
|
||||
} |
// }
|
||||
|
|
||||
app.whenReady().then(() => { |
// app.whenReady().then(() => {
|
||||
createWindow() |
// createWindow()
|
||||
}) |
// })
|
File diff suppressed because it is too large
Loading…
Reference in new issue