pwa/pwa.js
/**
         * Register principal Service Worker
         * @return {undefined}
         */
Register principal Service Worker
@return {undefined}
Register principal Service Worker @return { undefined }
static register() {
            if (Navigator.isSupportedServiceWorker()) {
                window.addEventListener('load', () => {
                    navigator.serviceWorker.register(PWA_CONFIG.sw.filepath)
                        .then((registration) => {
                            console.log('PWA: Service Worker ready!');
                            registration.update();
                        })
                        .catch((error) => {
                            console.error('PWA: Service Worker registration failed with ' + error);
                        })
                    ;
                });
            }
        }
static register ( ) { if ( Navigator . isSupportedServiceWorker ( ) ) { window . addEventListener ( 'load' , ( ) => { navigator . serviceWorker . register ( PWA_CONFIG . sw . filepath ) . then ( ( registration ) => { console . log ( 'PWA: Service Worker ready!' ) ; registration . update ( ) ; } ) . catch ( ( error ) => { console . error ( 'PWA: Service Worker registration failed with ' + error ) ; } ) ; } ) ; } }
Register principal Service Worker
 @return {undefined}
Register principal Service Worker @return { undefined }