Minimalist Desktop Notification Library – Toaster

Category: Javascript , Notification | December 27, 2016
Authorskumar1708
Last UpdateDecember 27, 2016
LicenseMIT
Views413 views
Minimalist Desktop Notification Library – Toaster

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 !!");

You Might Be Interested In:


Leave a Reply