]> khamidou — GitHub mirrors - electron.git/commitdiff
spec: Fix refreshing on Windows
authorCheng Zhao <zcbenz@gmail.com>
Fri, 6 Nov 2015 13:00:38 +0000 (21:00 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Fri, 6 Nov 2015 13:00:38 +0000 (21:00 +0800)
spec/api-crash-reporter-spec.coffee

index 9aedb0c8ea1e50aa8579bd36f5a86b4b1c6c1064..618adaaf9dec00e26eb1ab6f246f6798e619da40 100644 (file)
@@ -53,5 +53,6 @@ describe 'crash-reporter module', ->
         protocol: 'file'
         pathname: path.join fixtures, 'api', 'crash.html'
         search: "?port=#{port}"
-      crashReporter.start {'submitUrl': 'http://127.0.0.1:' + port}
+      if process.platform is 'darwin'
+        crashReporter.start {'submitUrl': 'http://127.0.0.1:' + port}
       w.loadUrl url