Merge pull request #1063 from PhenomRetroShare/Fix_BlankPageWhenClearLobbyInWebInterface

Fix Blank Page When Clear Lobby in Web Interface
This commit is contained in:
csoler 2017-11-01 20:35:29 +01:00 committed by GitHub
commit 1a01181ef4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -234,9 +234,11 @@ function lobby(lobbyid){
];
} else {
var el = document.getElementById("CharLobbyName");
el.innerText = lobdt.name;
var cln = document.getElementById("ChatLobbyName");
if (cln != null) {
cln.innerText = lobdt.name;
}
msg = m(".chat.bottom",[
m("div","enter new message, Ctrl+Enter to submit:"),
m("textarea",{
@ -388,7 +390,7 @@ module.exports = {
"h2",
{
style:{margin:"0px"},
id:"CharLobbyName"
id:"ChatLobbyName"
},
"Lobby Name"
)