Added so the url changes without reloading the page

This commit is contained in:
Kasper Rynning-Tønnesen
2015-06-04 13:33:12 +02:00
parent 03ede41b1f
commit ff708841db

View File

@@ -30,6 +30,8 @@ socket.on("id", function(id)
setup_chat_listener(chan);
socket.emit("list", chan.toLowerCase()+",unused");
window.history.pushState("object or string", "Title", "/"+chan.toLowerCase());
}
});
}