mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-06-03 19:01:50 +00:00
fix: check for correct method
This commit is contained in:
+1
-2
@@ -33,8 +33,7 @@ Singleton {
|
||||
try {
|
||||
if (typeof DesktopEntries === 'undefined' || !DesktopEntries.byId)
|
||||
return iconFromName(fallback, fallback)
|
||||
|
||||
const entry = (DesktopEntries.byId) ?
|
||||
const entry = (DesktopEntries.heuristicLookup) ?
|
||||
DesktopEntries.heuristicLookup(appId) :
|
||||
DesktopEntries.byId(appId)
|
||||
const name = entry && entry.icon ? entry.icon : ""
|
||||
|
||||
Reference in New Issue
Block a user