Skip to content

Commit

Permalink
Ugh fine, paying for positionstack https
Browse files Browse the repository at this point in the history
  • Loading branch information
alexburner committed Nov 26, 2022
1 parent 4bae9ec commit 37e5a16
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/singletons/lookup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ interface LookupResult {
label: string // "10727 Durland Avenue Northeast, Seattle, WA, USA"
}

const API_URL = 'http://api.positionstack.com/v1'
const API_URL = 'https://api.positionstack.com/v1'
const API_LOL = [
'a',
'c',
Expand Down Expand Up @@ -135,7 +135,7 @@ const lookup = async (url: string): Promise<LookupResult[]> => {
}

// Fetch from API if no cache hit
const response = await fetch(url, { referrerPolicy: 'unsafe-url' })
const response = await fetch(url)
const json = await response.json()
const results = json.data ?? []

Expand Down

0 comments on commit 37e5a16

Please sign in to comment.