mirror of
https://github.com/electron/electron.git
synced 2026-05-02 03:00:22 -04:00
Use arrow functions to replace old CoffeeScript => this wrappers
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
'use strict';
|
||||
|
||||
const os = require('os');
|
||||
const path = require('path');
|
||||
const spawn = require('child_process').spawn;
|
||||
@@ -52,11 +54,9 @@ var CrashReporter = (function() {
|
||||
deprecate.log('submitURL is now a required option to crashReporter.start');
|
||||
return;
|
||||
}
|
||||
start = (function(_this) {
|
||||
return function() {
|
||||
return binding.start(_this.productName, companyName, submitURL, autoSubmit, ignoreSystemCrashHandler, extra);
|
||||
};
|
||||
})(this);
|
||||
start = () => {
|
||||
binding.start(this.productName, companyName, submitURL, autoSubmit, ignoreSystemCrashHandler, extra);
|
||||
};
|
||||
if (process.platform === 'win32') {
|
||||
args = ["--reporter-url=" + submitURL, "--application-name=" + this.productName, "--v=1"];
|
||||
env = {
|
||||
|
||||
Reference in New Issue
Block a user