Skip to content

Commit

Permalink
Merge pull request #65 from asad-rafter/CLD-259-PD-unable-to-remove-i…
Browse files Browse the repository at this point in the history
…mage-link-from

CLD-259
  • Loading branch information
yuval-cloudinary authored Jan 31, 2024
2 parents 36b9323 + 9941810 commit 4d8d1b0
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,12 @@ const handleIframeMessage = (message, ifrm, value = null, config) => {
if (response.status === 200) {
response.json().then((json) => {
if (json.status === 'ok') {
data.value.url = json.url;
if (data.value.value === 'null') {
data.value.value = " ";
data.value.url = "";
} else {
data.value.url = json.url;
}
ifrm.contentWindow.postMessage(data.value, '*');
}
// eslint-disable-next-line no-console
Expand Down

0 comments on commit 4d8d1b0

Please sign in to comment.