Update packages/settings-view/lib/package-card.js

Co-authored-by: DeeDeeG <DeeDeeG@users.noreply.github.com>
This commit is contained in:
confused_techie 2023-09-14 22:40:26 -07:00 committed by GitHub
parent 7312ae4f83
commit b79644e90b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -283,7 +283,7 @@ export default class PackageCard {
loadCachedMetadata () {
if (this.pack.repository === atom.branding.urlCoreRepo) {
// Don't hit the web for our bundled packages. Just use the local image.
this.refs.avatar.src = `file://${path.join(process.execPath, "..", "resources", "pulsar.png")}`;
this.refs.avatar.src = `file://${path.join(process.resourcesPath, "pulsar.png")}`;
} else {
this.client.avatar(ownerFromRepository(this.pack.repository), (err, avatarPath) => {
if (!err && avatarPath) {