mikaelbr / node-notifier

A Node.js module for sending notifications on native Mac, Windows and Linux (or Growl as fallback)
MIT License
5.73k stars 322 forks source link

Custom contentImage doesnt load #350

Closed sentoxaio closed 3 years ago

sentoxaio commented 3 years ago

I am using node-notifier on an Electron app made with Typescript and React.

When I try to use a custom image as a contentImage, it only loads the default SnoreToast one:

Screenshot 2020-11-14 172619

    notifier.notify({
        title: "<TITLE>",
        message: `<MESSAGE>`,
        contentImage: path.join(__dirname, "../assets/logo.png"),
        appName: `<APP NAME>`,
    });
jakedowns commented 3 years ago

guessing it's cause you needed to use the .icon property, not the webpack-notifier "contentImage" one, yeah?