maj de nwjs

This commit is contained in:
Antoine WEBER
2017-07-10 13:51:00 +02:00
parent 858c5bd713
commit f72206156d
3 changed files with 2435 additions and 11 deletions

View File

@@ -1,7 +1,9 @@
"use strict";
var gui = global.window.nwDispatcher.requireNwGui();
var gui = window.require('nw.gui');
var util = require('util');
class CustomTrayMenu {
constructor(windowPath, trayIcon, windowOptions) {
this.shown = false;
@@ -18,6 +20,7 @@ class CustomTrayMenu {
this._initTray();
this._initMenuWindow();
this.tray.on('click', this.toggleTrayMenuAt.bind(this));
}
@@ -45,7 +48,6 @@ class CustomTrayMenu {
frame: false,
transparent: true,
resizable: false,
toolbar: false,
show: false,
'show_in_taskbar': process.platform == "darwin"
}, this.menuWndowOptions);