mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-19 14:13:34 +01:00
Merge pull request #203 from andrehjr/issue187
Fix issue # 187 Pad forgets usernames often
This commit is contained in:
commit
fa9b36df0f
1 changed files with 8 additions and 7 deletions
|
@ -79,12 +79,13 @@ function randomString()
|
||||||
|
|
||||||
function getParams()
|
function getParams()
|
||||||
{
|
{
|
||||||
var showControls = getUrlVars()["showControls"];
|
var params = getUrlVars()
|
||||||
var showChat = getUrlVars()["showChat"];
|
var showControls = params["showControls"];
|
||||||
var userName = unescape(getUrlVars()["userName"]);
|
var showChat = params["showChat"];
|
||||||
var showLineNumbers = getUrlVars()["showLineNumbers"];
|
var userName = params["userName"];
|
||||||
var useMonospaceFont = getUrlVars()["useMonospaceFont"];
|
var showLineNumbers = params["showLineNumbers"];
|
||||||
var IsnoColors = getUrlVars()["noColors"];
|
var useMonospaceFont = params["useMonospaceFont"];
|
||||||
|
var IsnoColors = params["noColors"];
|
||||||
|
|
||||||
if(IsnoColors)
|
if(IsnoColors)
|
||||||
{
|
{
|
||||||
|
@ -130,7 +131,7 @@ function getParams()
|
||||||
if(userName)
|
if(userName)
|
||||||
{
|
{
|
||||||
// If the username is set as a parameter we should set a global value that we can call once we have initiated the pad.
|
// If the username is set as a parameter we should set a global value that we can call once we have initiated the pad.
|
||||||
globalUserName = userName;
|
globalUserName = unescape(userName);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue