Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

215
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda