pwa/pwa.js
/**
         * Displays a pop-up message from the browser requesting permission to allow notifications.
         * @param  {Function} callback Return callback with status string.
         * @return {String}
         */
Displays a pop-up message from the browser requesting permission to allow notifications.
@param  {Function} callback Return callback with status string.
@return {String}
Displays a pop - up message from the browser requesting permission to allow notifications . @param { Function } callback Return callback with status string . @return { String }
static requestPermission(callback) {
            if (Navigator.isSupportedNotification()) {
                notification.requestPermission((status) => {
                    console.log('PWA: Notification permission status:', status);
                    callback(status);
                });
            }
        }
static requestPermission ( callback ) { if ( Navigator . isSupportedNotification ( ) ) { notification . requestPermission ( ( status ) => { console . log ( 'PWA: Notification permission status:' , status ) ; callback ( status ) ; } ) ; } }
Displays a pop-up message from the browser requesting permission to allow notifications.
Displays a pop - up message from the browser requesting permission to allow notifications .