From 0f40e0119c4b912c0b3b4fe1a7b4bb61ee6b674f Mon Sep 17 00:00:00 2001 From: Craig Date: Thu, 30 Jan 2020 23:58:26 +0000 Subject: [PATCH] dont show emotes when document hidden --- client/src/store/chat.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/store/chat.ts b/client/src/store/chat.ts index 35908e0c..450e86ad 100644 --- a/client/src/store/chat.ts +++ b/client/src/store/chat.ts @@ -59,7 +59,7 @@ export const actions = actionTree( { state, getters, mutations }, { newEmote(store, emote: Emote) { - if (accessor.settings.ignore_emotes) { + if (accessor.settings.ignore_emotes || document.visibilityState === 'hidden') { return }