Removed unused variables and trying to fix frontpage error on fb.zoff.me

This commit is contained in:
Kasper Rynning-Tønnesen
2017-10-16 22:03:33 +02:00
parent b25ca4eadd
commit 296327ba7d
7 changed files with 6 additions and 13 deletions

View File

@@ -116,7 +116,7 @@ var Chat = {
}
}
var icon_add = "";
if(inp.hasOwnProperty("icon") && inp.icon != false && inp.icon != "") {
if(inp.hasOwnProperty("icon") && !inp.icon && inp.icon != "") {
icon_add = "<img class='chat-icon' src='" + inp.icon + "' alt='" + inp.from + "'>";
}
@@ -152,7 +152,7 @@ var Chat = {
}
var icon_add = "";
if(data.hasOwnProperty("icon") && data.icon != false && data.icon != "") {
if(data.hasOwnProperty("icon") && !data.icon && data.icon != "") {
icon_add = "<img class='chat-icon' src='" + data.icon + "' alt='" + data.from + "'>";
}