mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-02-02 14:16:39 +01:00
Fallback if browser doesn't autoplay
This commit is contained in:
parent
31b342d68e
commit
ded6420c1a
1 changed files with 5 additions and 0 deletions
|
@ -785,6 +785,11 @@ function Media({ media, showOriginal, autoAnimate, onClick = () => {} }) {
|
|||
${isGIF ? '' : 'controls'}
|
||||
playsinline
|
||||
loop="${loopable}"
|
||||
${
|
||||
isGIF
|
||||
? 'ondblclick="this.paused ? this.play() : this.pause()"'
|
||||
: ''
|
||||
}
|
||||
></video>
|
||||
`,
|
||||
}}
|
||||
|
|
Loading…
Reference in a new issue