Improve spec window's default behavior.
This commit is contained in:
parent
99c37fc902
commit
5bbb41415a
1 changed files with 8 additions and 0 deletions
|
@ -3,6 +3,14 @@ var BrowserWindow = require('browser-window');
|
|||
|
||||
var window = null;
|
||||
|
||||
process.on('uncaughtException', function() {
|
||||
window.openDevTools();
|
||||
});
|
||||
|
||||
app.on('window-all-closed', function() {
|
||||
app.terminate();
|
||||
});
|
||||
|
||||
app.on('finish-launching', function() {
|
||||
window = new BrowserWindow({
|
||||
title: 'atom-shell tests',
|
||||
|
|
Loading…
Reference in a new issue