forked from michaljaz/webmc
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
26 lines (20 loc) · 643 Bytes
/
Copy pathindex.js
File metadata and controls
26 lines (20 loc) · 643 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
// Generated by CoffeeScript 2.5.1
(function() {
var config, el, fs;
el = require("electron");
fs = require("fs");
config = JSON.parse(fs.readFileSync(__dirname + "/config.json"));
require("./server")(config);
el.app.on('ready', function() {
var size, win;
size = el.screen.getPrimaryDisplay().size;
win = new el.BrowserWindow({
width: size.width,
height: size.height,
icon: __dirname + "/client/assets/images/icon.png"
});
win.setMenuBarVisibility(false);
win.setAutoHideMenuBar(true);
return win.loadURL(`http://${config.host}:${config['express-port']}`);
});
}).call(this);