Add SSL support
This commit is contained in:
parent
f7e968a13c
commit
4ec1d04247
9 changed files with 96 additions and 55 deletions
|
|
@ -438,14 +438,9 @@ else {
|
|||
var label = $("<label/>").text("Enter Channel:").appendTo(div);
|
||||
var entry = $("<input/>").attr("type", "text").appendTo(div);
|
||||
entry.keydown(function(ev) {
|
||||
var host = ""+document.location;
|
||||
host = host.replace("http://", "");
|
||||
host = host.substring(0, host.indexOf("/"));
|
||||
var host = document.protocol + "//" + document.host + "/";
|
||||
if(ev.keyCode == 13) {
|
||||
document.location = "http://" + host + "/r/" + entry.val();
|
||||
socket.emit("joinChannel", {
|
||||
name: entry.val()
|
||||
});
|
||||
document.location = host + "r/" + entry.val();
|
||||
container.remove();
|
||||
main.css("display", "");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue