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 { |
|||
require('electron-reloader')(module, {}); |
|||
} catch (_) { } |
|||
const createWindow = () => { |
|||
const win = new BrowserWindow({ |
|||
width: 1366, |
|||
height: 768, |
|||
webPreferences: { |
|||
// preload,
|
|||
nodeIntegration: true, |
|||
contextIsolation: false, |
|||
}, |
|||
}) |
|||
Menu.setApplicationMenu(null); |
|||
// try {
|
|||
// require('electron-reloader')(module, {});
|
|||
// } catch (_) { }
|
|||
// const createWindow = () => {
|
|||
// const win = new BrowserWindow({
|
|||
// width: 1366,
|
|||
// height: 768,
|
|||
// webPreferences: {
|
|||
// // preload,
|
|||
// nodeIntegration: true,
|
|||
// contextIsolation: false,
|
|||
// },
|
|||
// })
|
|||
// Menu.setApplicationMenu(null);
|
|||
|
|||
console.log(process.env, process.env.NODE_ENV); |
|||
win.loadURL('http://localhost:5400') |
|||
// win.loadFile('./client/index.html')
|
|||
// console.log(process.env, process.env.NODE_ENV);
|
|||
// win.loadURL('http://localhost:5400')
|
|||
// // win.loadFile('./client/index.html')
|
|||
|
|||
win.webContents.openDevTools() |
|||
} |
|||
// win.webContents.openDevTools()
|
|||
// }
|
|||
|
|||
app.whenReady().then(() => { |
|||
createWindow() |
|||
}) |
|||
// app.whenReady().then(() => {
|
|||
// createWindow()
|
|||
// })
|
File diff suppressed because it is too large
Loading…
Reference in new issue