From 458a179852b20808569fca417fcde7aae6da8f1d Mon Sep 17 00:00:00 2001 From: Alexander Corn Date: Thu, 17 Aug 2017 13:12:36 -0400 Subject: [PATCH] Fixed reference to undefined self --- components/chat.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/chat.js b/components/chat.js index 4329e71..21e743a 100644 --- a/components/chat.js +++ b/components/chat.js @@ -219,7 +219,7 @@ SteamCommunity.prototype._relogWebChat = function() { }; SteamCommunity.prototype._chatUpdatePersona = function(steamID) { - if (!this.chatFriends || self.chatState == SteamCommunity.ChatState.Offline) { + if (!this.chatFriends || this.chatState == SteamCommunity.ChatState.Offline) { return; // we no longer care }