export function getNotificationPermission ( ) { if ( Notification . permission !== 'granted' && Notification . permission !== 'denied' ) { Notification . requestPermission ( ) ; } } export function notification ( title , options ? ) { if ( Notification . permission === "granted" ) { new Notification ( title , options ) ; } }