-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.js
More file actions
38 lines (25 loc) · 734 Bytes
/
main.js
File metadata and controls
38 lines (25 loc) · 734 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
29
30
31
32
33
34
35
36
37
38
var app = require('app');
// var remote = require('remote');
// var dialog = require('dialog');
// var fs = require('fs');
// var path = require('path');
var BrowserWindow = require('browser-window');
var mainWindow = null;
app.on('window-all-closed', function() {
app.quit();
});
app.on('ready', function() {
mainWindow = new BrowserWindow({
width: 302,
height: 476,
resizable: true,
frame: false,
transparent: true,
'auto-hide-menu-bar': true,
'use-content-size': true
});
// mainWindow.setMaximumSize(302, 800);
// mainWindow.setMinimumSize(302, 400);
mainWindow.loadUrl('file://' + __dirname + '/index.html');
mainWindow.show();
});