E
E
Eugene2019-01-17 08:53:03
JavaScript
Eugene, 2019-01-17 08:53:03

How to remove "electron.app.Electron" signature from standard electron notifications?

On Windows, when a notification is opened, "electron.app.Electron" is displayed under the message text. How to get rid of it, or better - replace it with your own text? Chet did not find for some reason.

if (Notification.isSupported()) {
        const notif = new Notification({
            title: data.threadName,
            body: data.message,
            icon: nativeImage.createFromPath('./images/icons/png/32x32.png')
        });
        notif.show();
    }

5c401810cf23b409320156.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Eugene, 2019-01-17
@e_snegirev

the answer was simple. this signature is only displayed on test runs (npm start). if you pack and build the installer, this line will no longer be on Windows. Everything will change on the Mac too.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question