www/category-category-module-es5.js
/** This will be executed only once for each new Firebase Installation. */
This will be executed only once for each new Firebase Installation.
This will be executed only once for each new Firebase Installation .
function registerInstallation(appConfig, installationEntry) {
      return Object(tslib__WEBPACK_IMPORTED_MODULE_2__["__awaiter"])(this, void 0, void 0, function () {
        var registeredInstallationEntry, e_1;
        return Object(tslib__WEBPACK_IMPORTED_MODULE_2__["__generator"])(this, function (_a) {
          switch (_a.label) {
            case 0:
              _a.trys.push([0, 2,, 7]);
              return [4
              , createInstallationRequest(appConfig, installationEntry)];
            case 1:
              registeredInstallationEntry = _a.sent();
              return [2
              , set(appConfig, registeredInstallationEntry)];
            case 2:
              e_1 = _a.sent();
              if (!(isServerError(e_1) && e_1.serverCode === 409)) return [3
              , 4]; 
              return [4
              , remove(appConfig)];
            case 3:
              _a.sent();
              return [3
              , 6];
            case 4:
              return [4
              , set(appConfig, {
                fid: installationEntry.fid,
                registrationStatus: 0
              })];
            case 5:
              _a.sent();
              _a.label = 6;
            case 6:
              throw e_1;
            case 7:
              return [2
              ];
          }
        });
      });
    }
function registerInstallation ( appConfig , installationEntry ) { return Object ( tslib__WEBPACK_IMPORTED_MODULE_2__ [ "__awaiter" ] ) ( this , void 0 , void 0 , function ( ) { var registeredInstallationEntry , e_1 ; return Object ( tslib__WEBPACK_IMPORTED_MODULE_2__ [ "__generator" ] ) ( this , function ( _a ) { switch ( _a . label ) { case 0 : _a . trys . push ( [ 0 , 2 , , 7 ] ) ; return [ 4 , createInstallationRequest ( appConfig , installationEntry ) ] ; case 1 : registeredInstallationEntry = _a . sent ( ) ; return [ 2 , set ( appConfig , registeredInstallationEntry ) ] ; case 2 : e_1 = _a . sent ( ) ; if ( ! ( isServerError ( e_1 ) && e_1 . serverCode === 409 ) ) return [ 3 , 4 ] ; return [ 4 , remove ( appConfig ) ] ; case 3 : _a . sent ( ) ; return [ 3 , 6 ] ; case 4 : return [ 4 , set ( appConfig , { fid : installationEntry . fid , registrationStatus : 0 } ) ] ; case 5 : _a . sent ( ) ; _a . label = 6 ; case 6 : throw e_1 ; case 7 : return [ 2 ] ; } } ) ; } ) ; }
This will be executed only once for each new Firebase Installation.
This will be executed only once for each new Firebase Installation .
/*yield*/ /*return*/ /*break*/ // Server returned a "FID can not be used" error. // Generate a new ID next time. /*yield*/ // Server returned a "FID can not be used" error. // Generate a new ID next time. /*break*/ // Registration failed. Set FID as not registered. /*yield*/ /* NOT_STARTED */ // Registration failed. Set FID as not registered. /*return*/