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.

Click event doesn't work

See original GitHub issue

hH! Windows 10 latest What did i do wrong?

constructor(serve) {
    this.serve = serve;
    const defaultIconPathPrefix = this.serve ? '/../../src/assets/' : '/../../dist/secure-box/assets/';
    this.defaultIconPath = path.join(__dirname, defaultIconPathPrefix + 'icons/icon-72x72.png');
    notifier.on('click', (notifierObject, options, event) => {
      console.log('click ', 1);
      console.log('obj ', notifierObject);
      console.log('opti ', options);
      console.log('event ', event);
    });
    notifier.on('timeout', (notifierObject, options) => {
      console.log('finish ', 1);
    });
    this.subscribeToShowing();
  }

  public subscribeToShowing() {
    ipcMain.on('notification', (event, data) => {
      // event.returnValue = 'pong';

      notifier.notify({
        message: data.message,
        title: data.title,
        sound: data.sound || true, // "Bottle",
        icon : data.icon || this.defaultIconPath,
        wait: data.wait || true,
      }, (err, res) => {
        if (err) {
          return;
        }
      });
    });
  }

When I click on a notification click event doesn’t work

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:12

github_iconTop GitHub Comments

2reactions
fzs1994commented, Dec 21, 2020

@mikaelbr Click event is still not working on 9.0.0

2reactions
major697commented, Nov 7, 2019

Hi, I have this same error. I’m back to version 5.4.3 and then click event work correctly

Read more comments on GitHub >

github_iconTop Results From Across the Web

jquery click event doesn't work - Stack Overflow
I wrote this code , and I need to handle click events with jquery , but it doesn't work in any browser ,...
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 >
JavaScript Click event doesn't work in the first click, why?
The javascript onclick event function executes a certain action or functionality when a button is clicked. This could be when a user(customer) submits...
Read more >
Event listeners not working? 3 key areas to troubleshoot
Are your event listeners not working as you'd expect? Here are 3 key areas to troubleshoot to help you get everything triggering as...
Read more >
Click event doesn't work on button sometimes - Studio
clicking on the export button should open the pop up. however sometimes it doesn't work.
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