web/settings/defaults: toggle localProcessing depending on device

webkit is really weird with wasm ram management, so we disable local processing by default there. the user can still enable it manually in settings, but then we're not at fault by allowing potentially broken behavior by default
This commit is contained in:
wukko
2025-04-21 23:06:25 +06:00
parent 029934e580
commit ea8560e8a9
2 changed files with 5 additions and 1 deletions

View File

@@ -1,3 +1,4 @@
import { device } from "$lib/device";
import { defaultLocale } from "$lib/i18n/translations";
import type { CobaltSettings } from "$lib/types/settings";
@@ -20,7 +21,7 @@ const defaultSettings: CobaltSettings = {
},
save: {
alwaysProxy: false,
localProcessing: false,
localProcessing: device.supports.defaultLocalProcessing || false,
audioBitrate: "128",
audioFormat: "mp3",
disableMetadata: false,