浏览代码

do not start crashReporter when appCenter isn't configured (#787)

Baptiste Augrain 3 年之前
父节点
当前提交
b1970e82af
共有 1 个文件被更改,包括 13 次插入0 次删除
  1. 13 0
      patches/crash-reporter.patch

+ 13 - 0
patches/crash-reporter.patch

@@ -0,0 +1,13 @@
+diff --git a/src/main.js b/src/main.js
+index 19dde20..d9611f2 100644
+--- a/src/main.js
++++ b/src/main.js
+@@ -409,6 +409,8 @@ function configureCrashReporter() {
+ 					argv.splice(endOfArgsMarkerIndex, 0, '--crash-reporter-id', crashReporterId);
+ 				}
+ 			}
++		} else {
++			return;
+ 		}
+ 	}
+