Close window without node-webkit quit?

15 views
Skip to first unread message

jun lin

unread,
Mar 18, 2014, 10:47:50 PM3/18/14
to node-...@googlegroups.com
Hi, I want my program close to the tray, 
and I write code to handle window close event, but after last window closed, the app exits.
Is there anyway to let node-webkit still running after last window closed?
Thanks.

Anatoly Pashin

unread,
Mar 18, 2014, 10:49:03 PM3/18/14
to node-...@googlegroups.com
.hide() method of Window is probably what you're looking for


--
You received this message because you are subscribed to the Google Groups "node-webkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-webkit...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Пашин Анатолий,
эникейщик.

jun lin

unread,
Mar 18, 2014, 11:23:26 PM3/18/14
to node-...@googlegroups.com
Thanks, it work now. Here is the code: https://gist.github.com/halida/9634676

VoidVolker

unread,
Mar 19, 2014, 12:20:38 AM3/19/14
to node-...@googlegroups.com
        win.on('close', function(){
            this.hide();
            <any other code>
        });
Reply all
Reply to author
Forward
0 new messages