VLC button is showing only in standalone apps now. Not in mobile browser. Default state is false for VLC setting

This commit is contained in:
Daniel Shleifman
2022-09-14 21:13:38 +03:00
parent d052077201
commit 803b59a291
2 changed files with 5 additions and 4 deletions

View File

@@ -32,7 +32,7 @@ export default function SettingsDialog({ handleClose }) {
const [cachePercentage, setCachePercentage] = useState(40)
const [preloadCachePercentage, setPreloadCachePercentage] = useState(0)
const [isProMode, setIsProMode] = useState(JSON.parse(localStorage.getItem('isProMode')) || false)
const [isVlcUsed, setIsVlcUsed] = useState(JSON.parse(localStorage.getItem('isVlcUsed')) ?? true)
const [isVlcUsed, setIsVlcUsed] = useState(JSON.parse(localStorage.getItem('isVlcUsed')) ?? false)
useEffect(() => {
axios.post(settingsHost(), { action: 'get' }).then(({ data }) => {