-
Notifications
You must be signed in to change notification settings - Fork 3.9k
zcbenz edited this page Nov 4, 2012
·
26 revisions
App API requires node-webkit >= v0.3.1
// Load native UI library
var gui = require('nw.gui');
// Print arguments
console.log(gui.App.argv);
// Quit current app
gui.App.quit();
Get the command line arguments when starting the app.
Send the close
event to all windows of current app, if no window is blocking the close
event, then the app will quit after all windows have done shutdown. Use this method to quit an app will give windows a chance to save data.
Quit current app. This method will not send close
event to windows and app will just quit quietly.