Convert Settings class to TS (#37218)

This commit is contained in:
diondiondion authored and GitHub committed 2025-12-12 10:20:32 +00:00
1 parent e206b0d0de
commit 8748f0812d
4 files changed
+68 -54

No files matched your search

@@ -41,8 +41,8 @@ const persistVolume = (volume: number, muted: boolean) => {
};
const restoreVolume = (audio: HTMLAudioElement) => {
const volume = (playerSettings.get('volume') as number | undefined) ?? 0.5;
const muted = (playerSettings.get('muted') as boolean | undefined) ?? false;
const volume = playerSettings.get('volume') ?? 0.5;
const muted = playerSettings.get('muted') ?? false;
audio.volume = volume;
audio.muted = muted;