Restore "Autoplay media files" behavior

## Issue
Closes 6078 `"Autoplay media files = disable" is broken`

`if (-1)` is "truthy"
This commit is contained in:
infinite-persistence 2021-05-18 01:55:22 +08:00 committed by infinite-persistence
parent e96e1ed7ca
commit 73f6d207ea

View file

@ -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;
}