Use "shell.openExternal(url)" to open links in external browsers.

This commit is contained in:
Cheng Zhao
2013-05-20 10:05:19 +08:00
parent 7cb6801ce8
commit 8be54136ed
4 changed files with 18 additions and 19 deletions

View File

@@ -125,7 +125,7 @@ window.handleEvents = ->
return if location[0] is '#'
if location.indexOf('https://') is 0 or location.indexOf('http://') is 0
require('child_process').spawn('open', [location])
require('shell').openExternal(location)
false
window.handleDragDrop = ->