Show window before opening devtools.

It may happen that an exception is thrown before window is shown.
This commit is contained in:
Cheng Zhao
2013-06-27 19:29:35 +08:00
parent 45ce8e1d63
commit f9545acde6

View File

@@ -13,6 +13,7 @@
currentWindow.emit('window:loaded');
}
catch (error) {
currentWindow.show();
currentWindow.openDevTools();
console.error(error.stack || error);
}