7 lines
167 B
JavaScript
7 lines
167 B
JavaScript
const { app, shell } = require("electron");
|
|
|
|
app.whenReady().then(() => {
|
|
let port = process.env.PORT || 3000;
|
|
shell.openExternal(`http://localhost:${port}`);
|
|
});
|