mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Save the sync message in require('crash-reporter').start().
This commit is contained in:
@@ -1,9 +1,6 @@
|
||||
# Like sands through the hourglass, so are the days of our lives.
|
||||
startTime = Date.now()
|
||||
|
||||
# Start the crash reporter before anything else.
|
||||
require('crash-reporter').start(productName: 'Atom', companyName: 'GitHub')
|
||||
|
||||
require './window'
|
||||
|
||||
Atom = require './atom'
|
||||
|
||||
@@ -8,13 +8,22 @@
|
||||
var path = require('path');
|
||||
var ipc = require('ipc');
|
||||
try {
|
||||
// Skip "?loadSettings=".
|
||||
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}
|
||||
});
|
||||
|
||||
require('vm-compatibility-layer');
|
||||
require('coffee-script').register();
|
||||
require(path.resolve(__dirname, '..', 'src', 'coffee-cache')).register();
|
||||
|
||||
// Skip "?loadSettings=".
|
||||
var loadSettings = decodeURIComponent(location.search.substr(14));
|
||||
require(JSON.parse(loadSettings).bootstrapScript);
|
||||
require(loadSettings.bootstrapScript);
|
||||
ipc.sendChannel('window-command', 'window:loaded')
|
||||
}
|
||||
catch (error) {
|
||||
|
||||
Reference in New Issue
Block a user