Fix reload if there is hash in the url
This commit is contained in:
parent
43a5742258
commit
344ad44854
2 changed files with 25 additions and 22 deletions
|
@ -417,11 +417,12 @@ class Wrapper
|
||||||
@reload(message.params[0])
|
@reload(message.params[0])
|
||||||
|
|
||||||
reload: (url_post="") ->
|
reload: (url_post="") ->
|
||||||
|
current_url = window.location.toString().replace(/#.*/g, "")
|
||||||
if url_post
|
if url_post
|
||||||
if window.location.toString().indexOf("?") > 0
|
if current_url.indexOf("?") > 0
|
||||||
window.location += "&"+url_post
|
window.location = current_url + "&" + url_post
|
||||||
else
|
else
|
||||||
window.location += "?"+url_post
|
window.location = current_url + "?" + url_post
|
||||||
else
|
else
|
||||||
window.location.reload()
|
window.location.reload()
|
||||||
|
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue