autoformating

This commit is contained in:
LemmyCook 2025-08-25 18:33:25 -04:00
parent d791705afa
commit 48e57a2122
2 changed files with 3 additions and 4 deletions

View file

@ -33,9 +33,8 @@ Singleton {
try {
if (typeof DesktopEntries === 'undefined' || !DesktopEntries.byId)
return iconFromName(fallback, fallback)
const entry = (DesktopEntries.heuristicLookup) ?
DesktopEntries.heuristicLookup(appId) :
DesktopEntries.byId(appId)
const entry = (DesktopEntries.heuristicLookup) ? DesktopEntries.heuristicLookup(
appId) : DesktopEntries.byId(appId)
const name = entry && entry.icon ? entry.icon : ""
return iconFromName(name || fallback, fallback)
} catch (e) {