handleOnlineStatus() {
    window.addEventListener('online', () => {
      DBHelper.addNewReviewsWhenOnline();
      const offlineInfoElements = document.querySelectorAll('.reviewer-offline-info');
      offlineInfoElements.forEach(offlineInfoElement => {
        offlineInfoElement.remove();
      });
    });
  }
/**
   * Listen to online status and remove offline info.
   */
Listen to online status and remove offline info.
Listen to online status and remove offline info .
handleOnlineStatus() {
    window.addEventListener('online', () => {
      DBHelper.addNewReviewsWhenOnline();
      const offlineInfoElements = document.querySelectorAll('.reviewer-offline-info');
      offlineInfoElements.forEach(offlineInfoElement => {
        offlineInfoElement.remove();
      });
    });
  }
handleOnlineStatus ( ) { window . addEventListener ( 'online' , ( ) => { DBHelper . addNewReviewsWhenOnline ( ) ; const offlineInfoElements = document . querySelectorAll ( '.reviewer-offline-info' ) ; offlineInfoElements . forEach ( offlineInfoElement => { offlineInfoElement . remove ( ) ; } ) ; } ) ; }
Listen to online status and remove offline info.
Listen to online status and remove offline info .