Commit 39e683ea authored by 神楽坂玲奈's avatar 神楽坂玲奈

join

parent 94c38fe1
...@@ -31,7 +31,7 @@ room = { ...@@ -31,7 +31,7 @@ room = {
server: { server: {
ip: url.attr('host') ip: url.attr('host')
port: url.attr('port') port: url.attr('port')
auth: url.param('server_auth') auth: !!url.param('server_auth')
} }
} }
...@@ -46,7 +46,7 @@ else if room.private ...@@ -46,7 +46,7 @@ else if room.private
$('#server_ip').html room.server.ip $('#server_ip').html room.server.ip
$('#server_port').html room.server.port $('#server_port').html room.server.port
$('#server_auth').html room.server.auth $('#server_auth').html room.server.auth.toString()
if room.server.auth and !($.cookie('username') && $.cookie('password')) if room.server.auth and !($.cookie('username') && $.cookie('password'))
$('#join').hide() $('#join').hide()
......
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
server: { server: {
ip: url.attr('host'), ip: url.attr('host'),
port: url.attr('port'), port: url.attr('port'),
auth: url.param('server_auth') auth: !!url.param('server_auth')
} }
}; };
...@@ -61,7 +61,7 @@ ...@@ -61,7 +61,7 @@
$('#server_port').html(room.server.port); $('#server_port').html(room.server.port);
$('#server_auth').html(room.server.auth); $('#server_auth').html(room.server.auth.toString());
if (room.server.auth && !($.cookie('username') && $.cookie('password'))) { if (room.server.auth && !($.cookie('username') && $.cookie('password'))) {
$('#join').hide(); $('#join').hide();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment