mirror of
https://github.com/wukko/cobalt.git
synced 2025-04-29 22:14:26 +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,11 +15,13 @@
|
||||
/>
|
||||
</SettingsCategory>
|
||||
|
||||
<SettingsCategory sectionId="webcodecs" title={$t("settings.local.webcodecs")} beta>
|
||||
<SettingsToggle
|
||||
settingContext="advanced"
|
||||
settingId="useWebCodecs"
|
||||
title={$t("settings.local.webcodecs.title")}
|
||||
description={$t("settings.local.webcodecs.description")}
|
||||
/>
|
||||
</SettingsCategory>
|
||||
{#if env.ENABLE_WEBCODECS}
|
||||
<SettingsCategory sectionId="webcodecs" title={$t("settings.local.webcodecs")} beta>
|
||||
<SettingsToggle
|
||||
settingContext="advanced"
|
||||
settingId="useWebCodecs"
|
||||
title={$t("settings.local.webcodecs.title")}
|
||||
description={$t("settings.local.webcodecs.description")}
|
||||
/>
|
||||
</SettingsCategory>
|
||||
{/if}
|
||||
|
Loading…
x
Reference in New Issue
Block a user