Skip to content

Commit a28b18f

Browse files
committed
open letter button event
1 parent 4ca5878 commit a28b18f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/js/adn/notifications.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,10 @@ const openLatestRelease = function () {
176176
openPage("https://github.com/dhowe/AdNauseam/releases/latest");
177177
};
178178

179+
const navigateToOpenLetter = function () {
180+
openPage("https://adnauseam.io/letter.html");
181+
}
182+
179183
const reloadOptions = function () {
180184
browser.tabs.query({}, (tabs) => {
181185
tabs.filter((t) => t.url.endsWith("options.html")).forEach((t) => browser.tabs.reload(t.id));
@@ -370,7 +374,7 @@ export const OpenLetter = new Notification({
370374
button: "adnOpenLetterButton",
371375
type: INFO,
372376
});
373-
NewerVersionAvailable.func = openLatestRelease.bind(NewerVersionAvailable);
377+
OpenLetter.func = navigateToOpenLetter.bind(OpenLetter);
374378

375379
export const Notifications = [
376380
AdBlockerEnabled,

0 commit comments

Comments
 (0)