Restore "Autoplay media files" behavior
## Issue Closes 6078 `"Autoplay media files = disable" is broken` `if (-1)` is "truthy"
This commit is contained in:
parent
e96e1ed7ca
commit
73f6d207ea
1 changed files with 1 additions and 1 deletions
|
@ -59,7 +59,7 @@ export default function FileRenderInitiator(props: Props) {
|
|||
// get current url
|
||||
const url = window.location.href;
|
||||
// check if there is a time parameter, if so force autoplay
|
||||
if (url.indexOf('t=')) {
|
||||
if (url.indexOf('t=') > -1) {
|
||||
autoplay = true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue