Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

214
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda