Skip to content

Commit

Permalink
use correct url
Browse files Browse the repository at this point in the history
  • Loading branch information
nileshgulia1 committed Aug 9, 2021
1 parent b789a3c commit 803f04d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PrivacyProtection/PrivacyProtection.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export default ({ children, data = {}, block, ...rest }) => {
React.useEffect(() => {
if (enabled) {
fetch(
`https://screenshot.eea.europa.eu/api/v1/retrieve_image_for_url?url=https://maps.eea.europa.eu/EEAViewer/?appid=5a28d4d9831243e28bd4f8f1a6cbdb6e&w=1920&waitfor=5000`,
`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)));
Expand Down

0 comments on commit 803f04d

Please sign in to comment.