From 803f04d53193047545c56b797c62e50a933d4f74 Mon Sep 17 00:00:00 2001 From: nileshgulia1 Date: Mon, 9 Aug 2021 17:23:02 +0530 Subject: [PATCH] use correct url --- src/PrivacyProtection/PrivacyProtection.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PrivacyProtection/PrivacyProtection.jsx b/src/PrivacyProtection/PrivacyProtection.jsx index 6a88a90..335076e 100644 --- a/src/PrivacyProtection/PrivacyProtection.jsx +++ b/src/PrivacyProtection/PrivacyProtection.jsx @@ -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)));