-
Notifications
You must be signed in to change notification settings - Fork 320
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
error received: TypeError: fn.apply is not a function #132
Comments
What code are you running that fails? |
The problem here is the second argument when doing: // Object
notifier.notify({
'title': 'My notification',
'message': 'Hello, there!'
}, 2000); See the documentation, the second argument is a callback function, not a time delay. Passing something other than a function here will cause a error. This probably should throw a typeerror with a descriptive text which says something like second argument being a callback and it should be a optional function. |
Hi @mikaelbr . I would like to give this a try. |
Perfect! Just let me know if you need any help getting started. |
Thank you! I'll let you know if everything fails 👍 |
Im using the following and consistently get the error:
code I'm using that DOES successfully fire a notification on OSX:
immediately after the notification appears, the node.js http server instance crashes.
Im running node v6.2.2 on OSX 10.10.4
The text was updated successfully, but these errors were encountered: