Skip to content

Commit

Permalink
Merge pull request #27 from adam-lynch/patch-6
Browse files Browse the repository at this point in the history
Better killing of app in readme example
  • Loading branch information
edjafarov committed Aug 21, 2014
2 parents 82ab7b5 + eeb251e commit 32a04aa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ npm test

## Quick Start
```javascript
var gui = require('nw.gui');
var pkg = require('../package.json'); // Insert your app's manifest here
var updater = require('node-webkit-updater');
var upd = new updater(pkg);
Expand All @@ -39,7 +40,7 @@ function upgradeNow() {
upd.unpack(filename, function(error, newAppPath) {
if (!error) {
upd.runInstaller(newAppPath, [upd.getAppPath(), upd.getAppExec()],{});
process.exit();
gui.App.quit();
}
});
}
Expand Down

0 comments on commit 32a04aa

Please sign in to comment.