mobile: unnecessary try/catch in theme update routine
This commit is contained in:
parent
2344fc0a81
commit
6f26e53f82
1 changed files with 3 additions and 5 deletions
|
|
@ -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)
|
||||
}
|
||||
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue