jpillora / notifyjs

Notify.js - A simple, versatile notification library
https://notifyjs.jpillora.com/
MIT License
1.91k stars 743 forks source link

Return notification when calling fn directly #121

Closed mattmelling closed 2 years ago

mattmelling commented 6 years ago

Just found this fork lurking in a package.json from a while back and thought it might be useful...

Returns the notification object when calling fn directly, allowing us to resize the notification container. I was doing this to automatically resize the notification container based on text width + some arbitrary offset.