Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

This package has been deprecated

Author message:

This package is no longer maintained. Electron now supports notifications on all platforms.

electron-notification-polyfill

1.2.2 • Public • Published
import os from 'os';
import NotificationPolyfill from 'electron-notification-polyfill';
const Notification = process.platform === 'win32' && parseFloat(os.release()) < 10 ? NotificationPolyfill: window.Notification;
new Notification('Hello World', {
  body: '...',
  icon: 'http://abc.example/icon.png'
})

Install

npm i electron-notification-polyfill

DownloadsWeekly Downloads

3

Version

1.2.2

License

MIT

Last publish

Collaborators

  • avatar