Minimalist Desktop Notification Library – Toaster

Category: Javascript , Notification | December 27, 2016
Author: skumar1708
Views Total: 223
Official Page: Go to website
Last Update: December 27, 2016
License: MIT

Preview:

Minimalist Desktop Notification Library – Toaster

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