mirror of
				https://git.sr.ht/~tsileo/microblog.pub
				synced 2025-06-05 21:59:23 +02:00 
			
		
		
		
	Tweak video mode
This commit is contained in:
		| @@ -6,7 +6,7 @@ function hasAudio (video) { | ||||
|  | ||||
| function setVideoInGIFMode(video) { | ||||
|     if (!hasAudio(video)) { | ||||
|         if (typeof video.loop == 'boolean' && video.duration < 3.0) { | ||||
|         if (typeof video.loop == 'boolean' && video.duration <= 10.0) { | ||||
|             video.classList.add("video-gif-mode"); | ||||
|             video.loop = true; | ||||
|             video.controls = false; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user