Skip to content

Commit

Permalink
fix: Switch Google suggestions API to HTTPS
Browse files Browse the repository at this point in the history
  • Loading branch information
lscambo13 committed Jan 29, 2024
1 parent 69e51e1 commit def6cb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js_modules/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ const googleAutocomplete = (input) => {
if (myScript !== '') {
document.body.removeChild(myScript);
}
const provider = 'http://suggestqueries.google.com/complete/search?client=firefox&callback=googleSuggestions&q=';
const provider = 'https://suggestqueries.google.com/complete/search?client=firefox&callback=googleSuggestions&q=';
myScript = document.createElement('script');
myScript.src = `${provider}${input}`;
document.body.appendChild(myScript);
Expand Down

0 comments on commit def6cb6

Please sign in to comment.