]> khamidou — GitHub mirrors - electron.git/commitdiff
Forgot to set default version in crash reporter
authorCheng Zhao <zcbenz@gmail.com>
Tue, 14 Apr 2015 09:37:22 +0000 (17:37 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Tue, 14 Apr 2015 09:37:22 +0000 (17:37 +0800)
atom/common/api/lib/crash-reporter.coffee

index 12edcd6fba94b0e56c4efb8707a76ea52caf9465..d87ff9ea772f136bc07b07b10a200958807df9b1 100644 (file)
@@ -23,7 +23,7 @@ class CrashReporter
 
     extra._productName ?= @productName
     extra._companyName ?= companyName
-    extra._version ?=
+    extra._version ?= app.getVersion()
 
     start = => binding.start @productName, companyName, submitUrl, autoSubmit, ignoreSystemCrashHandler, extra