From 6f26e53f82151645470808dda5b71cc9c17ed9d1 Mon Sep 17 00:00:00 2001 From: jean-emmanuel Date: Sat, 5 Oct 2024 22:40:39 +0200 Subject: [PATCH] mobile: unnecessary try/catch in theme update routine --- src/client/ui/utils.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/client/ui/utils.js b/src/client/ui/utils.js index 35f0dee2..7e80d499 100644 --- a/src/client/ui/utils.js +++ b/src/client/ui/utils.js @@ -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) + } })