Skip to content

Commit

Permalink
Fix icon URL to ensure notifications work on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
moisseev committed Jul 24, 2024
1 parent 0d8fe4e commit 4dcfa5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/libBackground.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ libBackground.displayNotification = function (messageName, string = "") {
// eslint-disable-next-line no-console
console.warn("Rspamd-spamness warning:", translatedMessage);
browser.notifications.create({
iconUrl: browser.extension.getURL("images/icon.svg"),
iconUrl: browser.runtime.getURL("images/icon.svg"),
message: translatedMessage,
title: "Rspamd-spamness",
type: "basic"
Expand Down

0 comments on commit 4dcfa5d

Please sign in to comment.