mirror of
https://github.com/mgerb/ps-launcher
synced 2026-01-09 18:12:50 +00:00
lots of progress - basic functionality work - bundling working
This commit is contained in:
16
main.js
16
main.js
@@ -16,15 +16,15 @@ function createWindow() {
|
||||
mainWindow = new BrowserWindow({ width: 800, height: 600, frame: false });
|
||||
|
||||
// and load the index.html of the app.
|
||||
// mainWindow.loadURL(
|
||||
// url.format({
|
||||
// pathname: path.join(__dirname, './dist/index.html'),
|
||||
// protocol: 'file:',
|
||||
// slashes: true,
|
||||
// }),
|
||||
// );
|
||||
mainWindow.loadURL(
|
||||
url.format({
|
||||
pathname: path.join(__dirname, './dist/index.html'),
|
||||
protocol: 'file:',
|
||||
slashes: true,
|
||||
}),
|
||||
);
|
||||
|
||||
mainWindow.loadURL('http://localhost:8080');
|
||||
// mainWindow.loadURL('http://localhost:8080');
|
||||
|
||||
// Open the DevTools.
|
||||
// mainWindow.webContents.openDevTools()
|
||||
|
||||
Reference in New Issue
Block a user