app/scripts/views/ChannelGuide.js
/**
   * Update the service worker registration handle. Also update the supportsPUSH flag
   *
   * @param {Object} swRegistration - Service Worker registration handle
   * @return {Object} the same handle, to obey the setter convention
   */
Update the service worker registration handle. Also update the supportsPUSH flag
@param {Object} swRegistration - Service Worker registration handle
@return {Object} the same handle, to obey the setter convention
Update the service worker registration handle . Also update the supportsPUSH flag @param { Object } swRegistration - Service Worker registration handle @return { Object } the same handle to obey the setter convention
registerWorker(swRegistration) {
    this.supportsPUSH = 'serviceWorker' in navigator && 'PushManager' in window
      && swRegistration && typeof swRegistration.pushManager === 'object';
    this.swRegistration = swRegistration;
    console.log('Registering worker for channel guide', this.supportsPUSH);
    return swRegistration;
  }
registerWorker ( swRegistration ) { this . supportsPUSH = 'serviceWorker' in navigator && 'PushManager' in window && swRegistration && typeof swRegistration . pushManager === 'object' ; this . swRegistration = swRegistration ; console . log ( 'Registering worker for channel guide' , this . supportsPUSH ) ; return swRegistration ; }
Update the service worker registration handle.
Update the service worker registration handle .
// Update the handle to support PUSH or not