node-mac-notifier icon indicating copy to clipboard operation
node-mac-notifier copied to clipboard

`onclick` property does not work

Open ccnokes opened this issue 9 years ago • 1 comments

The onclick property of a notification instance doesn't work.

let Notification = require('node-mac-notifier');
let n = new Notification('test');
n.onclick = function() { console.log('onclick'); };
n.addEventListener('click', () => { console.log('event listener');  });

The addEventListener callback gets called but not the onclick.

ccnokes avatar May 09 '16 19:05 ccnokes

Should be an easy fix, this is just regular ole JS, but I probably won't get to it for a while so feel free to put up a PR.

CharlieHess avatar May 26 '16 04:05 CharlieHess