better theme for tv
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user