Skip to content

Commit

Permalink
Enable videos on mobile.
Browse files Browse the repository at this point in the history
  • Loading branch information
darabos committed Feb 16, 2025
1 parent ef2a0f0 commit 956e3c6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions battlepass.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 `<img src="images/space-animals-sana/${e.name}.jpeg" width="150" />`;
Expand Down

0 comments on commit 956e3c6

Please sign in to comment.