mirror of
https://github.com/philomena-dev/philomena.git
synced 2025-03-28 06:17:46 +01:00
Fix comment
This commit is contained in:
parent
e9316d41e2
commit
35f1a9e4d4
2 changed files with 1 additions and 2 deletions
|
@ -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');
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue