Closed andyTsing closed 4 years ago
if (isProd) serve({ directory: 'app' }); else app.setPath('userData', `${app.getPath('userData')} (development)`); (async () => { await app.whenReady(); mainWindow = createWindow('main'); if (isProd) mainWindow.loadURL('app://./home.html'); else { const port = process.argv[2]; console.log(this.state.port); mainWindow.loadURL(`http://localhost:${port}/home`); } ... })();
================================================== The above is my code snippet, in production mode, reporting cross-domain issues
================================================== The above is my code snippet, in production mode, reporting cross-domain issues