mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Improve spec window's default behavior.
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user