Fix reload if there is hash in the url

This commit is contained in:
shortcutme 2019-10-06 03:20:58 +02:00
parent 43a5742258
commit 344ad44854
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE
2 changed files with 25 additions and 22 deletions

View file

@ -417,11 +417,12 @@ class Wrapper
@reload(message.params[0])
reload: (url_post="") ->
current_url = window.location.toString().replace(/#.*/g, "")
if url_post
if window.location.toString().indexOf("?") > 0
window.location += "&"+url_post
if current_url.indexOf("?") > 0
window.location = current_url + "&" + url_post
else
window.location += "?"+url_post
window.location = current_url + "?" + url_post
else
window.location.reload()

File diff suppressed because one or more lines are too long