I have this code. I am using the fetch-jsonp library in my React-Redux app.
export function fetchAirBnbData() {
  return function (dispatch) {
    fetchJsonp('http://assets.airbnb.com/frontend/search_results.js', {
     jsonpCallback: 'search_results',
   })
      .then(function (response) {
        console.log(response)
        return response.json()
      }).then(function (json) {
       console.log('parsed json', json)
       dispatch(loadAirBnBData(json))
      }).catch(function (ex) {
       console.log('parsing failed', ex)
     })
 }
}
I am getting this error
Uncaught ReferenceError: search_results is not defined
From what I know, this should work. Any ideas what is happening here?
 
    