Skip to content

Commit

Permalink
updated images.weserv.nl to v2 url
Browse files Browse the repository at this point in the history
  • Loading branch information
RichardJohnn authored Nov 16, 2022
1 parent 0925efb commit 77553f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helpers/http.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export function cachedFetch<T>(
export const imageUrlToBlob = (url: string): Promise<Blob> => {
return new Promise((resolve, reject) => {
window
.fetch(`https://images.weserv.nl/?url=${encodeURIComponent(url)}`)
.fetch(`https://wsrv.nl/?url=${encodeURIComponent(url)}`)
.then((response) => {
if (!response.ok) throw new Error("errors.response_not_ok");
return response.blob();
Expand Down

0 comments on commit 77553f6

Please sign in to comment.