better theme for tv

This commit is contained in:
2026-09-10 19:46:35 +03:30
parent d4e3a99e61
commit 0da9f68353
7 changed files with 80 additions and 32 deletions
+5
View File
@@ -295,6 +295,11 @@
if (!logoUrl) return
localStorage.setItem(BOOT_LOGO_KEY, logoUrl)
if (logoUrl.indexOf('data:') === 0 || typeof fetch !== 'function') return
try {
if (new URL(logoUrl, window.location.href).origin !== window.location.origin) return
} catch (e) {
return
}
fetch(logoUrl, { mode: 'cors', credentials: 'omit' })
.then(function (res) {
return res && res.ok ? res.blob() : Promise.reject()