Skip to content

Commit

Permalink
correct image response
Browse files Browse the repository at this point in the history
  • Loading branch information
nileshgulia1 committed Aug 9, 2021
1 parent 6a77df8 commit 8e20ead
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/PrivacyProtection/PrivacyProtection.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,7 @@ export default ({ children, data = {}, block, ...rest }) => {
getProxiedExternalContent(
`https://screenshot.eea.europa.eu/api/v1/retrieve_image_for_url?url=${data.url}&w=1920&waitfor=5000`,
),
)
.then((e) => e.blob())
.then((blob) => setImage(URL.createObjectURL(blob)));
).then((blob) => setImage(URL.createObjectURL(blob)));
}
}, [enabled, data.url, dispatch]);

Expand Down

0 comments on commit 8e20ead

Please sign in to comment.