fix: check for correct method
This commit is contained in:
parent
e1d623be9c
commit
7899b124b7
1 changed files with 1 additions and 2 deletions
|
|
@ -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 : ""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue