in src/state/api.js [69:83]
export function getSearchResults(
searchProduct,
queryString,
resultsLimit = DEFAULT_SEARCH_RESULTS_LIMIT
) {
// use a "fog_and_legacy" URL which searches for old telemetry + FOG metrics
const productId =
searchProduct === 'firefox' ? 'fog_and_legacy' : searchProduct;
const searchURL = getProbeSearchURL(productId, queryString, resultsLimit);
return fetch(searchURL).then((r) => {
if (r.ok) return r.json(); // everything is fine
return r; // fetch error - send the error object
});
}