feat: add error handling to player core functions

This commit is contained in:
2026-06-16 14:00:38 +02:00
committed by Milas Holsting
parent 3a1a2129d9
commit 2a8294c405
9 changed files with 45 additions and 22 deletions

View File

@@ -75,8 +75,8 @@ export const switchMode = (mode: string): void => {
const next = new URL(window.location.href);
next.searchParams.set("mode", expectedMode);
window.location.href = next.toString();
} catch {
// no-op
} catch (error) {
console.error("failed to save resume state or switch mode:", error);
}
}, 800);
}