Wrongly checked for popstate

This commit is contained in:
Kasper Rynning-Tønnesen
2016-01-23 15:24:46 +01:00
parent b735b085a2
commit c39ff619bc
3 changed files with 5 additions and 5 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -203,7 +203,7 @@ var Nochan = {
$("#channel-load").css("display", "block");
window.scrollTo(0, 0);
$.ajax({
url: chan + "/php/channel.php",
success: function(e){
@@ -231,7 +231,7 @@ var Nochan = {
window.onpopstate = function(e){
var url_split = window.location.href.split("/");
if(url_split[3] != "" || url_split[3].substring(0,1) != "#"){
if(url_split[3] != "" && url_split[3].substring(0,1) != "#"){
Nochan.to_channel(url_split[3], true);
}
}