Author: jruchaud Date: 2015-04-16 09:00:55 +0000 (Thu, 16 Apr 2015) New Revision: 1214 Url: http://forge.nuiton.org/projects/sandbox/repository/revisions/1214 Log: Revert Modified: wit/js/main.js Modified: wit/js/main.js =================================================================== --- wit/js/main.js 2015-04-16 09:00:43 UTC (rev 1213) +++ wit/js/main.js 2015-04-16 09:00:55 UTC (rev 1214) @@ -73,24 +73,3 @@ } -// Load library -var gui = require('nw.gui'); - -// Reference to window and tray -var win = gui.Window.get(); -var tray; - - // Get the minimize event - win.on('minimize', function() { - // Hide window - this.hide(); - - // Show tray - tray = new gui.Tray({ icon: 'icon.png' }); - - // Show window and remove tray when clicked - tray.on('click', function() { - win.show(); - this.remove(); - tray = null; -}); \ No newline at end of file
participants (1)
-
jruchaud@users.nuiton.org