nullcheck

This commit is contained in:
Jiiks 2015-10-26 00:11:27 +02:00
parent 70a8c27e04
commit 15b7ea130b
1 changed files with 4 additions and 1 deletions

View File

@ -249,6 +249,8 @@ EmoteModule.prototype.injectEmote = function(node) {
}
});
if(parent.parentElement == null) return;
var oldHeight = parent.parentElement.offsetHeight;
parent.innerHTML = parentInnerHTML;
var newHeight = parent.parentElement.offsetHeight;
@ -307,7 +309,8 @@ PublicServers.prototype.getPanel = function() {
PublicServers.prototype.init = function() {
this.container = $("<div/>", {
id: "bd-ps-container"
id: "bd-ps-container",
style: "display:none"
});
var header = $("<div/>", {