mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Added so the url changes without reloading the page
This commit is contained in:
@@ -30,6 +30,8 @@ socket.on("id", function(id)
|
|||||||
setup_chat_listener(chan);
|
setup_chat_listener(chan);
|
||||||
|
|
||||||
socket.emit("list", chan.toLowerCase()+",unused");
|
socket.emit("list", chan.toLowerCase()+",unused");
|
||||||
|
|
||||||
|
window.history.pushState("object or string", "Title", "/"+chan.toLowerCase());
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user