diff --git a/ui/renderer.js b/ui/renderer.js index b985128..c23dff2 100644 --- a/ui/renderer.js +++ b/ui/renderer.js @@ -406,14 +406,18 @@ window.addEventListener('DOMContentLoaded', async () => { } function saveSettingsCookieSource() { - const source = sourceFromFields( - youtubeCookieSourceSelect, - youtubeCookieProfileInput, - youtubeCookieContainerInput, - youtubeCookieKeyringSelect, - youtubeCookieFileInput - ); - saveYoutubeCookieSource(source); + try { + const source = sourceFromFields( + youtubeCookieSourceSelect, + youtubeCookieProfileInput, + youtubeCookieContainerInput, + youtubeCookieKeyringSelect, + youtubeCookieFileInput + ); + saveYoutubeCookieSource(source); + } catch { + saveYoutubeCookieSource(null); + } } function openCookieDialog(message) {