fix username being set in querystrings
This commit is contained in:
parent
4d76ccde06
commit
a107f080a8
@ -80,7 +80,7 @@ function getParams()
|
|||||||
{
|
{
|
||||||
var showControls = getUrlVars()["showControls"];
|
var showControls = getUrlVars()["showControls"];
|
||||||
var showChat = getUrlVars()["showChat"];
|
var showChat = getUrlVars()["showChat"];
|
||||||
var userName = getUrlVars()["userName"];
|
var userName = unescape(getUrlVars()["userName"]);
|
||||||
var showLineNumbers = getUrlVars()["showLineNumbers"];
|
var showLineNumbers = getUrlVars()["showLineNumbers"];
|
||||||
var useMonospaceFont = getUrlVars()["useMonospaceFont"];
|
var useMonospaceFont = getUrlVars()["useMonospaceFont"];
|
||||||
if(showControls)
|
if(showControls)
|
||||||
@ -245,6 +245,7 @@ function handshake()
|
|||||||
if (globalUserName !== false)
|
if (globalUserName !== false)
|
||||||
{
|
{
|
||||||
pad.notifyChangeName(globalUserName); // Notifies the server
|
pad.notifyChangeName(globalUserName); // Notifies the server
|
||||||
|
pad.myUserInfo.name = globalUserName;
|
||||||
$('#myusernameedit').attr({"value":globalUserName}); // Updates the current users UI
|
$('#myusernameedit').attr({"value":globalUserName}); // Updates the current users UI
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user