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
|
// get current url
|
||||||
const url = window.location.href;
|
const url = window.location.href;
|
||||||
// check if there is a time parameter, if so force autoplay
|
// check if there is a time parameter, if so force autoplay
|
||||||
if (url.indexOf('t=')) {
|
if (url.indexOf('t=') > -1) {
|
||||||
autoplay = true;
|
autoplay = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue