Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Develop sync #10

Merged
merged 2 commits into from
Oct 13, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,15 @@ All notable changes to this project will be documented in this file. Dates are d

Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).

#### [2.0.7](https://github.com/eea/volto-embed/compare/2.0.6...2.0.7)

- encode url to have the right country screenshot [`#9`](https://github.com/eea/volto-embed/pull/9)

#### [2.0.6](https://github.com/eea/volto-embed/compare/2.0.5...2.0.6)

> 12 October 2021

- `waitforselector` attribute while querying factsheet pages in screenshot api [`#8`](https://github.com/eea/volto-embed/pull/8)
- decreased wait time [`0686e19`](https://github.com/eea/volto-embed/commit/0686e19518dfb8e53a64300badb13887575b031a)
- more specific selector [`9707bab`](https://github.com/eea/volto-embed/commit/9707bab87cad8bb98b9ff780b501e6b32882bddc)
- add param to dep array [`6927395`](https://github.com/eea/volto-embed/commit/6927395bd8ee3535768d211895b503787de5a63e)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@eeacms/volto-embed",
"version": "2.0.6",
"version": "2.0.7",
"description": "Embed external content",
"main": "src/index.js",
"author": "European Environment Agency: IDM2 A-Team",
Expand Down
8 changes: 4 additions & 4 deletions src/PrivacyProtection/PrivacyProtection.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,9 @@ export default injectIntl(
fetch(
`${getBaseUrl(
'',
)}/cors-proxy/https://screenshot.eea.europa.eu/api/v1/retrieve_image_for_url?url=${url}&w=1920&waitfor=4000${
param ? `&waitforselector=img[src*=${param}]` : ''
}`,
)}/cors-proxy/https://screenshot.eea.europa.eu/api/v1/retrieve_image_for_url?url=${encodeURIComponent(
url,
)}&w=1920&waitfor=4000`,
)
.then((e) => e.blob())
.then((blob) => {
Expand All @@ -152,7 +152,7 @@ export default injectIntl(
}
});
}
}, [enabled, url, path, param, dispatch, bgImg, show, intl, isEditMode]);
}, [enabled, url, path, dispatch, bgImg, show, intl, isEditMode]);

return (
<VisibilitySensor
Expand Down