question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Event click open few card in browser

See original GitHub issue

Hi I using Electron: 5.0.8 node-notifier 5.4.3

when the notification appears for example 3 times and the user clicks on it, then 3 tabs in the browser will open:

const url = 'https://www.google.com/'
notifier.on('click', (notifierObject, options) => {
    console.log("click!");
    require('electron').shell.openExternal(url);
});

console.log will also return “click!” 3 times.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:6

github_iconTop GitHub Comments

2reactions
pjebscommented, Feb 26, 2020

Or maybe it was something like this:???

const url = 'https://www.google.com/'
notifier.removeAllListeners()
notifier.on('click', (notifierObject, options) => {
    console.log("click!");
    require('electron').shell.openExternal(url);
});
0reactions
major697commented, Feb 26, 2020

@pjebs it seems like the answer works. Thank you 😉

Read more comments on GitHub >

github_iconTop Results From Across the Web

html - Make link open on card click - Stack Overflow
Is there a way to make the cards using the card class to link to another page when clicked? It should be if...
Read more >
Element: click event - Web APIs | MDN
An element receives a click event when a pointing device button (such as a mouse's primary mouse button) is both pressed and released...
Read more >
eventClick - Docs - FullCalendar
Normally, if the Event Object has its url property set, a click on the event will cause the browser to visit the event's...
Read more >
On Click Event and Events Section | Mendix Documentation
The Open link event triggers an action based on a link type, some of which are specific to mobile devices. The following properties...
Read more >
How to handle Click Events in Cypress | BrowserStack
Right-click using Cypress Test Automation Tool. Note: Cypress right-click doesn't open context menus native to the browser, right-click will be ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found