Don't start crash reporter on Windows.

It is causing crashes on Windows, before it is fixed in atom-shell we
temporarily disable the crash reporter.
This commit is contained in:
Cheng Zhao 2014-07-25 23:28:29 +08:00
parent 4238e031da
commit 684f15ab89

View File

@ -6,13 +6,14 @@ window.onload = function() {
var loadSettings = JSON.parse(decodeURIComponent(location.search.substr(14)));
// Start the crash reporter before anything else.
require('crash-reporter').start({
productName: 'Atom',
companyName: 'GitHub',
// By explicitly passing the app version here, we could save the call
// of "require('remote').require('app').getVersion()".
extra: {_version: loadSettings.appVersion}
});
if (process.platform != 'win32')
require('crash-reporter').start({
productName: 'Atom',
companyName: 'GitHub',
// By explicitly passing the app version here, we could save the call
// of "require('remote').require('app').getVersion()".
extra: {_version: loadSettings.appVersion}
});
require('vm-compatibility-layer');
require('coffee-script').register();