Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

onclick property does not work #5

Open
ccnokes opened this issue May 9, 2016 · 1 comment
Open

onclick property does not work #5

ccnokes opened this issue May 9, 2016 · 1 comment

Comments

@ccnokes
Copy link
Contributor

ccnokes commented May 9, 2016

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.

@CharlieHess
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants