mirror of
https://github.com/wukko/cobalt.git
synced 2025-05-02 15:14:27 +02:00
web/settings/local: hide the webcodecs toggle if the feature not enabled
This commit is contained in:
parent
a3c9ccf5df
commit
e61ac61e20
@ -1,4 +1,5 @@
|
||||
<script lang="ts">
|
||||
import env from "$lib/env";
|
||||
import { t } from "$lib/i18n/translations";
|
||||
|
||||
import SettingsToggle from "$components/buttons/SettingsToggle.svelte";
|
||||
@ -14,6 +15,7 @@
|
||||
/>
|
||||
</SettingsCategory>
|
||||
|
||||
{#if env.ENABLE_WEBCODECS}
|
||||
<SettingsCategory sectionId="webcodecs" title={$t("settings.local.webcodecs")} beta>
|
||||
<SettingsToggle
|
||||
settingContext="advanced"
|
||||
@ -22,3 +24,4 @@
|
||||
description={$t("settings.local.webcodecs.description")}
|
||||
/>
|
||||
</SettingsCategory>
|
||||
{/if}
|
||||
|
Loading…
x
Reference in New Issue
Block a user