dont show emotes when document hidden

This commit is contained in:
Craig 2020-01-30 23:58:26 +00:00
parent bae3b85935
commit 0f40e0119c

View File

@ -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
}