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