index.js
function resolver(filePath, callback) {
    var fullPath = path.join(this.config.publicPath, filePath);
    var options = {
      resourceURL: filePath,
      contents: fs.readFileSync(fullPath).toString()
    };

    // If we defined a custom browser-side message system, use it.
    if (this.update) {
      options.update = this.update;
    }
    // If we specified a `match` option for fb-flo notifications, use it.
    if (this.config.resolverMatch) {
      options.match = this.config.resolverMatch;
    }
    // If we defined an advanced reload mechanism (fb-flo only has true/false,
    // we also allow anymatch sets), use it.
    if (this.config.resolverReload) {
      options.reload = this.config.resolverReload(filePath);
    }

    // Hand the notification over to the fb-flo server.
    callback(options);
  }
function resolver(filePath, callback) {
    var fullPath = path.join(this.config.publicPath, filePath);
    var options = {
      resourceURL: filePath,
      contents: fs.readFileSync(fullPath).toString()
    };

    // If we defined a custom browser-side message system, use it.
    if (this.update) {
      options.update = this.update;
    }
    // If we specified a `match` option for fb-flo notifications, use it.
    if (this.config.resolverMatch) {
      options.match = this.config.resolverMatch;
    }
    // If we defined an advanced reload mechanism (fb-flo only has true/false,
    // we also allow anymatch sets), use it.
    if (this.config.resolverReload) {
      options.reload = this.config.resolverReload(filePath);
    }

    // Hand the notification over to the fb-flo server.
    callback(options);
  }
function resolver ( filePath , callback ) { var fullPath = path . join ( this . config . publicPath , filePath ) ; var options = { resourceURL : filePath , contents : fs . readFileSync ( fullPath ) . toString ( ) } ; // If we defined a custom browser-side message system, use it. if ( this . update ) { options . update = this . update ; } // If we specified a `match` option for fb-flo notifications, use it. if ( this . config . resolverMatch ) { options . match = this . config . resolverMatch ; } // If we defined an advanced reload mechanism (fb-flo only has true/false, // we also allow anymatch sets), use it. if ( this . config . resolverReload ) { options . reload = this . config . resolverReload ( filePath ) ; } // Hand the notification over to the fb-flo server. callback ( options ) ; }
The fb-flo resolver, triggered everytime fb-flo wants to send a change notification to connected browser extensions.
The fb - flo resolver triggered everytime fb - flo wants to send a change notification to connected browser extensions .