-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.js
34 lines (30 loc) · 856 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
34
var app = require('app');
var BrowserWindow = require('browser-window');
require('crash-reporter').start();
var mainWindow = null;
app.on('window-all-closed', function() {
if (process.platform != 'darwin')
app.quit();
});
app.setPath("userData", __dirname + "/zDevDocsOffline");
app.on('ready', function() {
mainWindow = new BrowserWindow({
width: 1200,
height: 860,
resizable: true,
title: "zDevDocsOffline",
icon: "/zDevDocsOffline.icns",
icon: "/zDevDocsOffline.ico",
icon: "/zDevDocsOffline.png"
});
mainWindow.setOverlayIcon(
__dirname + "/zDevDocsOffline.png",
"Test?");
mainWindow.setTitle("zDevDocsOffline");
mainWindow.loadUrl('file://' + __dirname + '/index.html');
mainWindow.focus();
mainWindow.on('closed', function() {
mainWindow = null;
});
//mainWindow.toggleDevTools();
});