This repository has been archived by the owner on Jun 6, 2018. It is now read-only.
Releases: cgrossde/nw-notify
Releases · cgrossde/nw-notify
Bugfix Release
Bugfix release
- Correctly detect if it's a local sound file
- Remove unnecessary log()
Small bugfixes
- Don't show undefined as title or text when empty
- Fix version number in error message
v1.0.0 - Breaking changes, new features and bugfixes
Breaking changes:
- The use of
notify(title, text, ...)
has been removed. Please callnotify()
with an object:notify({ title: 'some title', text: 'some text' })
. config.animateInParallel
is now set to true (because of better performance)- Autocleanup feature was added and enabled by default. Calling
closeAll()
is not needed anymore. It will be called automatically when the main window is closed.
New features:
- Notification sounds:
nwNotify.notify({title: 'notification with sound', sound: nwNotify.getAppPath() + 'notification.wav'})
. (Thanks @makkesk8) - Autocleanup windows (no need to call
closeAll()
anymore)config.autoCleanup
. (Thanks @makkesk8)
Changes:
- Fixed bug where
getAppPath()
would not work when the window's URL contained anchors#
- More robust way of accessing the default
notification.html
template. If it can not be found we create one in the working dir and use that. Useful with webpack because in those setups thenode_modules
folder is not present. - Catch errors of
setStyleOnDomElement()
and report them to the user
Bugfix release
Fixes #16: You can now send notifications again after calling closeAll()
.
Added primary screen detection
Thanks @makkesk8. Fixes #9 and #10.