Nickersoft / push.js

The world's most versatile desktop notifications framework :earth_americas:
https://pushjs.org
MIT License
8.76k stars 548 forks source link

How do I specifiy what folder the icon is in? #272

Open justinjalandoniiwest opened 3 years ago

justinjalandoniiwest commented 3 years ago

Is this the correct way? How do I specify the directory? This is for a .NET mvc

Push.create("New Message!", {
    body: parsedMessageDetails[MESSAGE],
    icon: '/Content/icons/message-alert.png',
    timeout: 1000,
    onClick: function() {
        window.focus();
        this.close();
    }
});