Skip to content

Commit

Permalink
Remove hard-coded API key
Browse files Browse the repository at this point in the history
Change-Id: Iff00d719e55d000d25846f0a1a070ced3b197c88
Reviewed-by: Marcus Tillmanns <[email protected]>
  • Loading branch information
OrkunTokdemir committed Jun 4, 2024
1 parent ede8e48 commit 18c59fe
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/commands/online-docs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,7 @@ async function search() {
}
async function searchAndAskforResult(value: string) {
try {
const searchLink =
'https://www.googleapis.com/customsearch/v1/siterestrict?fields=items(link,snippet,title)&cx=047283ffa7d25323e&key=AIzaSyCZJjNXt7smIy62zupDA-d60EgTFtxwih4&num=10&siteSearch=doc.qt.io%2F*&siteSearchFilter=i&q=';
const searchLink = 'https://d24zn9cw9ofw9u.cloudfront.net?q=';
const searchResponse = await fetch(searchLink + value);
if (!searchResponse.ok) {
throw new Error('Network response: ' + searchResponse.status);
Expand Down

0 comments on commit 18c59fe

Please sign in to comment.