Fixed removeAllListeners to be working

This commit is contained in:
Kasper Rynning-Tønnesen
2018-02-15 11:17:09 +01:00
parent 1b52a06029
commit a45b82f9b9
3 changed files with 24 additions and 2 deletions

View File

@@ -298,7 +298,7 @@ var Frontpage = {
clearTimeout(rotation_timeout);
if(Helper.mobilecheck()){
Helper.log("removing all listeners");
socket.removeAllListeners();
removeAllListeners();
}
$("#main-container").css("background-color", "#2d2d2d");
if(!Helper.mobilecheck()) {