Fix comment

This commit is contained in:
Eliot Partridge 2024-05-14 17:00:48 -04:00
parent e9316d41e2
commit 35f1a9e4d4
No known key found for this signature in database
2 changed files with 1 additions and 2 deletions

View file

@ -87,7 +87,7 @@ function pickAndResize(elem) {
}
const muted = store.get('unmute_videos') ? '' : 'muted';
const autoplay = elem.classList.contains('hidden') ? '' : 'autoplay'; // Don't autoplay hidden videos initially
const autoplay = elem.classList.contains('hidden') ? '' : 'autoplay'; // Fix for spoilered image pages
if (imageFormat === 'mp4') {
elem.classList.add('full-height');

View file

@ -69,7 +69,6 @@ export function showBlock(img: HTMLDivElement) {
imageShowClasses.remove('hidden');
imageShowClasses.add('spoiler-pending');
// Play previously paused, spoilered video
const vidEl = img.querySelector('video');
if (vidEl) {
vidEl.play();