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

WindowsBallon Notifier not open window on click

Open ohsailey opened this issue 6 years ago • 0 comments

I am developing nw-app, and also using node-notifier module. It is so strange that, when I used it on window 10, it can open new window when clicking toaster, but on Window 7, it can not!

Btw, how do set toaster icon? i have set icon with absolute path, but it not work. I also use notifu on CLI, but it's not show my icon.

Here is my simple code:

var WindowsBalloon = require('node-notifier').WindowsBalloon; var notifier = new WindowsBalloon({ withFallback: false, customPath: void 0 });

notifier.notify({ title: 'title', message: 'text' icon: nw.__dirname + "/resource/images/default.png", wait: true, })

notifier.on('click', function() { window.open("http://www.google.com") });

Hope someone guy can help me, thank you very much.

ohsailey avatar Jan 26 '18 03:01 ohsailey