When the user clicks my notification, I want them Firefox to open a website on a new tab, but I can’t get the onClicked event listener for notifications to work. I’ve followed all of the MDN documentation and tried just adding a console logging line in the callback, but it doesn’t do anything. No error messages appear in the console.
Ok. Here is a side question.
Are we not allowed to open a new window/tab using the notifications onclick? I’ve tried the window.open() code in Javascript, but it doesn’t work. The console just returns null.