mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Convert url to string before fetching
This commit is contained in:
parent
d2bf31d9c5
commit
fa69f7b47b
1 changed files with 1 additions and 2 deletions
|
|
@ -62,8 +62,7 @@ export function gqlFetcher(
|
|||
|
||||
export function apiFetcher(path: string): Promise<unknown> {
|
||||
const url = new URL(path, fetchEndpoint)
|
||||
console.log('fetching: ', url)
|
||||
return fetch(url, {
|
||||
return fetch(url.toString(), {
|
||||
headers: requestHeaders(),
|
||||
credentials: 'include',
|
||||
mode: 'cors',
|
||||
|
|
|
|||
Loading…
Reference in a new issue