Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

213
Views
electron cannot override notification for discord.com

I want to listen to the notifications from discord with electron. and I followed this post: https://stackoverflow.com/a/59554483/13411736

Specifically, i created a pre-loaded renderer.js to override the notification

var Notification = function(title, ops) {
    ipc.send("notification-show", {title: title, options: ops});
};
Notification.requestPermission = () => {};
Notification.permission = "granted";
window.Notification = Notification;

and then in the index.js, i tried to display the notification from that "notification-show" channel, and display it with a new title

const ipc = require('electron').ipcMain;
ipc.on('notification-show', function (event, arg) {
    var notification = new VcpNotification("new:" + arg.title, arg.text);
    notification.show();
});

but it seems it does not work at all. the title is not updated when the notifications pop up

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!