Skip to content

Commit

Permalink
fix opening urls with '#' #593
Browse files Browse the repository at this point in the history
  • Loading branch information
davibe committed Apr 14, 2017
1 parent 5549261 commit 2b1defd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ui/views/messages.coffee
Expand Up @@ -63,7 +63,9 @@ onclick = (e) ->
xhr.onreadystatechange = (e) ->
return if e.target.status is 0
return if xhr.readyState isnt 4
finalUrl = xhr.responseURL
redirected = finalUrl.indexOf(xhr.responseURL) != 0
if redirected
finalUrl = xhr.responseURL
shell.openExternal(finalUrl)
xhr.abort()

Expand Down

0 comments on commit 2b1defd

Please sign in to comment.