From 956e3c6f8742bb06ee53daa0e3580708e2ac8a04 Mon Sep 17 00:00:00 2001 From: Daniel Darabos Date: Sun, 16 Feb 2025 11:04:34 +0100 Subject: [PATCH] Enable videos on mobile. --- battlepass.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/battlepass.js b/battlepass.js index 4d40802..0546407 100644 --- a/battlepass.js +++ b/battlepass.js @@ -275,11 +275,9 @@ function lockerFor(kind) { } } -const hasMouse = window.matchMedia('(any-hover: hover)').matches; - function avatarContents(e) { const key = `${e.kind}-${e.name}`; - if (videos[key] !== undefined && hasMouse) { + if (videos[key] !== undefined) { return videos[key]; } else if (e.kind == 'kutato') { return ``;