Use template strings
authorKevin Sawicki <kevin@github.com>
Tue, 24 Jan 2017 22:08:10 +0000 (14:08 -0800)
committerGitHub <noreply@github.com>
Tue, 24 Jan 2017 22:08:10 +0000 (14:08 -0800)
docs/api/crash-reporter.md

index c898592..3e93de4 100644 (file)
@@ -62,9 +62,9 @@ and `crashesDirectory` with appropriate values.
 
 ```js
  const args = [
-   '--reporter-url=' + submitURL,
-   '--application-name=' + productName,
-   '--crashes-directory=' + crashesDirectory
+   `--reporter-url=${submitURL}`,
+   `--application-name=${productName}`,
+   `--crashes-directory=${crashesDirectory}`
  ]
  const env = {
    ELECTRON_INTERNAL_CRASH_SERVICE: 1