npm.io
0.1.0 • Published 4 years ago

web-notify

Licence
MIT
Version
0.1.0
Deps
2
Size
7 kB
Vulns
0
Weekly
0
Stars
13

Simple Web Notification

Spec


import notify from 'web-notify';

notify(text, params)

import {request} from 'web-notify';

request(grantedCallback, deniedCallback)
  • Description
    • Let user could ask premission manually.
  • Arguments
    • grantedCallback (function): Run after user accept permission
    • deniedCallback (function): Run after user reject permission

Code:

Example Usage


import notify from 'web-notify';

notify('hello');

Chrome 62 not allow permision on insecure connection

Check the following announce, it not only appear on iframe both apply on all insecure connection (non-https).