web-notify

0.1.0 • Public • Published

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).

Readme

Keywords

none

Package Sidebar

Install

npm i web-notify

Weekly Downloads

8

Version

0.1.0

License

MIT

Unpacked Size

6.84 kB

Total Files

5

Last publish

Collaborators

  • hillliu