-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathmain.js
More file actions
28 lines (24 loc) · 655 Bytes
/
main.js
File metadata and controls
28 lines (24 loc) · 655 Bytes
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
"use strict";
var os = require("os");
const {
Init,
registerListeners,
handleSquirrelEvent,
} = require("./src/utils/index.js");
if (require("electron-squirrel-startup")) return;
// Global Values
global.globalOBJ = {
platform: os.platform(), // "darwin" means mac, and "win32" is window.
homePage: "https://google.com",
faviconGetter: "`https://www.google.com/s2/favicons?domain=",
webview: "true",
windows: "true",
proxyEnable: "true",
};
Init();
// Register all the required listeners.
registerListeners();
if (handleSquirrelEvent()) {
// squirrel event handled and app will exit in 1000ms, so don't do anything else
return;
}