Author: | skumar1708 |
---|---|
Views Total: | 399 views |
Official Page: | Go to website |
Last Update: | December 27, 2016 |
License: | MIT |
Preview:

Description:
Toaster is an ultra-lightweight to send custom desktop notification messages to end users.
How it works:
- Check if the browser supports notifications.
- Check whether notification permissions have already been granted.
- If it’s okay the library will create a notification.
- Otherwise, it will ask the user for permission.
How to use it:
Load the following JS file in the document and the Toaster is ready for use.
<script src="toaster.js"></script>
Make a desktop notification as this:
TOASTER.makeToast("I am a toast !!");