bin/XULRunner21_0/components/nsUpdateService.js
/**
   * Register an observer when the network comes online, so we can short-circuit
   * the app.update.interval when there isn't connectivity
   */
Register an observer when the network comes online, so we can short-circuit
the app.update.interval when there isn't connectivity
Register an observer when the network comes online so we can short - circuit the app . update . interval when there isn ' t connectivity
function AUS__registerOnlineObserver() {
    if (this._registeredOnlineObserver) {
      LOG("UpdateService:_registerOnlineObserver - observer already registered");
      return;
    }
    LOG("UpdateService:_registerOnlineObserver - waiting for the network to " +
        "be online, then forcing another check");
    Services.obs.addObserver(this, "network:offline-status-changed", false);
    this._registeredOnlineObserver = true;
  }
function AUS__registerOnlineObserver ( ) { if ( this . _registeredOnlineObserver ) { LOG ( "UpdateService:_registerOnlineObserver - observer already registered" ) ; return ; } LOG ( "UpdateService:_registerOnlineObserver - waiting for the network to " + "be online, then forcing another check" ) ; Services . obs . addObserver ( this , "network:offline-status-changed" , false ) ; this . _registeredOnlineObserver = true ; }
Register an observer when the network comes online, so we can short-circuit
 the app.update.interval when there isn't connectivity
Register an observer when the network comes online so we can short - circuit the app . update . interval when there isn ' t connectivity