fetchMatchingDestination_(destinationMatch) {
      this.autoSelectMatchingDestination_ = destinationMatch;
      const types = destinationMatch.getTypes();
      types.forEach(type => {
        if (type != null) {  // Local, extension, or privet printer
          this.startLoadDestinations(type);
        } else if (
            destinationMatch.matchOrigin(
                print_preview.DestinationOrigin.COOKIES) ||
            destinationMatch.matchOrigin(
                print_preview.DestinationOrigin.DEVICE)) {
          this.startLoadCloudDestinations();
        }
      });
    }
/**
     * Attempts to find a destination matching the provided rules.
     * @param {!print_preview.DestinationMatch} destinationMatch Rules to match.
     * @private
     */
Attempts to find a destination matching the provided rules.
Attempts to find a destination matching the provided rules .
fetchMatchingDestination_(destinationMatch) {
      this.autoSelectMatchingDestination_ = destinationMatch;
      const types = destinationMatch.getTypes();
      types.forEach(type => {
        if (type != null) {  
          this.startLoadDestinations(type);
        } else if (
            destinationMatch.matchOrigin(
                print_preview.DestinationOrigin.COOKIES) ||
            destinationMatch.matchOrigin(
                print_preview.DestinationOrigin.DEVICE)) {
          this.startLoadCloudDestinations();
        }
      });
    }
fetchMatchingDestination_ ( destinationMatch ) { this . autoSelectMatchingDestination_ = destinationMatch ; const types = destinationMatch . getTypes ( ) ; types . forEach ( type => { if ( type != null ) { this . startLoadDestinations ( type ) ; } else if ( destinationMatch . matchOrigin ( print_preview . DestinationOrigin . COOKIES ) || destinationMatch . matchOrigin ( print_preview . DestinationOrigin . DEVICE ) ) { this . startLoadCloudDestinations ( ) ; } } ) ; }
Attempts to find a destination matching the provided rules.
Attempts to find a destination matching the provided rules .
// Local, extension, or privet printer