Skip to content

Commit 0f32c26

Browse files
authored
Add icon-notif.png to web_accessible_resources filed so Parcel exports it
1 parent c6d1d19 commit 0f32c26

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

source/lib/notifications-service.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ export async function removeNotification(notificationId) {
9999
export function getNotificationObject(notificationInfo) {
100100
return {
101101
title: notificationInfo.subject.title,
102-
iconUrl: 'icon-notif.png',
102+
iconUrl: browser.runtime.getURL('icon-notif.png'),
103103
type: 'basic',
104104
message: notificationInfo.repository.full_name,
105105
contextMessage: getNotificationReasonText(notificationInfo.reason)

source/manifest.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,8 @@
3434
"options_ui": {
3535
"page": "options.html",
3636
"chrome_style": true
37-
}
37+
},
38+
"web_accessible_resources": [
39+
"icon-notif.png"
40+
]
3841
}

0 commit comments

Comments
 (0)