sciactive / pnotify

Beautiful JavaScript notifications with Web Notifications support.
https://sciactive.com/pnotify/
Apache License 2.0
3.65k stars 514 forks source link

Cannot change default FontAwesome5 icons #410

Open forxer opened 3 years ago

forxer commented 3 years ago

I'm trying to change the default icons but it doesn't seem to work.

PNotify.defaultModules.set(PNotifyFontAwesome5Fix, {});
PNotify.defaultModules.set(PNotifyFontAwesome5, {
    notice: 'fal fa-exclamation-circle',
    info: 'fal fa-info-circle',
    success: 'fal fa-check-circle',
    error: 'fal fa-exclamation-triangle',

    // Buttons Module
    closer: 'fal fa-times',
    sticker: 'fal',
    stuck: 'fa-play',
    unstuck: 'fa-pause',

    // Reference Module (Useful for other modules.)
    refresh: 'fal fa-sync'
});