-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.js
31 lines (31 loc) · 882 Bytes
/
index.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
const {
app: app,
BrowserWindow: BrowserWindow
} = require("electron");
const createWindow = () => {
let window = new BrowserWindow({
titleBarStyle: "defaut",
title: "JSDefender Deobfuscator",
frame: !0,
width: 1e3,
height: 550,
icon: __dirname + "\\img\\logo_javascript-300x300-2370592634.png",
show: !0,
autoHideMenuBar: !0,
resizable: !1,
webPreferences: {
nodeIntegration: !0,
contextIsolation: !1,
enableRemoteModule: !0
}
});
window.loadFile("src/index.html")
window.on("closed", (() => {
window = null
}))
};
app.on("ready", createWindow), app.on("window-all-closed", (() => {
if ("darwin" !== process.platform) return app.quit()
})), app.on("activate", (() => {
if (null === win) return createWindow()
}));