1.2.2 • Published 8 years ago
electron-notification-polyfill v1.2.2
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'
})