-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.js
33 lines (33 loc) · 977 Bytes
/
main.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var electron_1 = require("electron");
var path = require("path");
var mainWindow;
function createWindow() {
// Create the browser window.
mainWindow = new electron_1.BrowserWindow({
width: 800,
height: 600,
minWidth: 800,
minHeight: 600
});
mainWindow.setMenu(null);
// mainWindow.loadFile(path.join(__dirname, "../index.html"));
mainWindow.loadFile(path.join(__dirname, "./dist/dashboard/index.html"));
mainWindow.webContents.openDevTools();
mainWindow.on("closed", function () {
mainWindow = null;
});
}
electron_1.app.on("ready", createWindow);
electron_1.app.on("window-all-closed", function () {
if (process.platform !== "darwin") {
electron_1.app.quit();
}
});
electron_1.app.on("activate", function () {
if (mainWindow === null) {
createWindow();
}
});
//# sourceMappingURL=main.js.map