@@ -55,7 +55,7 @@ var client = function(sitekey, privatekey) {
5555 if ( ! this . throttledSearchFetch ) {
5656 this . throttledSearchFetch = throttle ( API_THROTTLE_TIME_MS , executeApiFetch ) ;
5757 }
58- this . throttledSearchFetch ( this . sitekey , 'search' , this . settings . getSettings ( ) , callback ) ;
58+ this . throttledSearchFetch ( this . apiHostname , this . sitekey , 'search' , this . settings . getSettings ( ) , callback ) ;
5959 }
6060
6161
@@ -73,7 +73,7 @@ var client = function(sitekey, privatekey) {
7373 if ( ! this . throttledSuggestionsFetch ) {
7474 this . throttledSuggestionsFetch = throttle ( API_THROTTLE_TIME_MS , executeApiFetch ) ;
7575 }
76- this . throttledSuggestionsFetch ( this . sitekey , 'suggest' , this . settings . getSettings ( ) , callback ) ;
76+ this . throttledSuggestionsFetch ( this . apiHostname , this . sitekey , 'suggest' , this . settings . getSettings ( ) , callback ) ;
7777 }
7878
7979
@@ -91,7 +91,7 @@ var client = function(sitekey, privatekey) {
9191 if ( ! this . throttledAutocompleteFetch ) {
9292 this . throttledAutocompleteFetch = throttle ( API_THROTTLE_TIME_MS , executeApiFetch ) ;
9393 }
94- this . throttledAutocompleteFetch ( this . sitekey , 'autocomplete' , this . settings . getSettings ( ) , callback ) ;
94+ this . throttledAutocompleteFetch ( this . apiHostname , this . sitekey , 'autocomplete' , this . settings . getSettings ( ) , callback ) ;
9595 }
9696
9797
0 commit comments