spec: Fix refreshing on Windows

This commit is contained in:
Cheng Zhao 2015-11-06 21:00:38 +08:00
parent d70706f876
commit c4ee8c1b1f

View 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