-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
33 lines (33 loc) · 1.16 KB
/
Copy pathindex.js
File metadata and controls
33 lines (33 loc) · 1.16 KB
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 Main = /** @class */ (function () {
function Main() {
}
Main.onWindowAllClosed = function () {
if (process.platform !== "darwin") {
Main.application.quit();
}
};
Main.onClose = function () {
// Dereference the window object.
Main.mainWindow = null;
};
Main.onReady = function () {
Main.mainWindow = new Main.BrowserWindow({ width: 800, height: 600 });
Main.mainWindow.loadURL("file://" + __dirname + "/index.html");
Main.mainWindow.on("closed", Main.onClose);
};
Main.main = function (app, browserWindow) {
// we pass the Electron.App object and the
// Electron.BrowserWindow into this function
// so this class has no dependencies. This
// makes the code easier to write tests for
Main.BrowserWindow = browserWindow;
Main.application = app;
Main.application.on("window-all-closed", Main.onWindowAllClosed);
Main.application.on("ready", Main.onReady);
};
return Main;
}());
exports.default = Main;
//# sourceMappingURL=index.js.map