mobile: unnecessary try/catch in theme update routine

This commit is contained in:
jean-emmanuel 2024-10-05 22:40:39 +02:00
parent 2344fc0a81
commit 6f26e53f82

View file

@ -51,11 +51,9 @@ module.exports = {
fastdom.mutate(()=>{
try {
for (var el of DOM.get('meta[name="theme-color"], meta[name="apple-mobile-web-app-status-bar-style"]')) {
el.setAttribute('content', color)
}
} catch(e) {}
for (var el of DOM.get('meta[name="theme-color"], meta[name="apple-mobile-web-app-status-bar-style"]')) {
el.setAttribute('content', color)
}
})