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 {
|
try {
|
||||||
if (typeof DesktopEntries === 'undefined' || !DesktopEntries.byId)
|
if (typeof DesktopEntries === 'undefined' || !DesktopEntries.byId)
|
||||||
return iconFromName(fallback, fallback)
|
return iconFromName(fallback, fallback)
|
||||||
|
const entry = (DesktopEntries.heuristicLookup) ?
|
||||||
const entry = (DesktopEntries.byId) ?
|
|
||||||
DesktopEntries.heuristicLookup(appId) :
|
DesktopEntries.heuristicLookup(appId) :
|
||||||
DesktopEntries.byId(appId)
|
DesktopEntries.byId(appId)
|
||||||
const name = entry && entry.icon ? entry.icon : ""
|
const name = entry && entry.icon ? entry.icon : ""
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue