Skip to content

Commit

Permalink
Merge pull request #311 from CleverTap/develop
Browse files Browse the repository at this point in the history
[SUC-126207][master] Fixed Cleanup of Stale WebPopup Nodes
  • Loading branch information
singhkunal2050 authored Nov 25, 2024
2 parents 25e2e0b + a3ce8e6 commit 69d6ff7
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 14 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Change Log
All notable changes to this project will be documented in this file.

## [1.11.10] 22nd Nov, 2024
- Fixed Web Popup Stale Nodes Cleanup

## [1.11.9] 14th Nov, 2024
- Fixed delete & read web-inbox messages for custom inbox

Expand Down
14 changes: 7 additions & 7 deletions clevertap.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion clevertap.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion clevertap.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "clevertap-web-sdk",
"version": "1.11.9",
"version": "1.11.10",
"description": "",
"main": "clevertap.js",
"scripts": {
Expand Down
8 changes: 4 additions & 4 deletions src/util/clevertap.js
Original file line number Diff line number Diff line change
Expand Up @@ -427,18 +427,18 @@ export const closeIframe = (campaignId, divIdIgnored, currentSessionId) => {
if ($ct.campaignDivMap != null) {
const divId = $ct.campaignDivMap[campaignId]
if (divId != null) {
document.getElementById(divId).style.display = 'none'
document.getElementById(divId).remove()
if (divId === 'intentPreview') {
if (document.getElementById('intentOpacityDiv') != null) {
document.getElementById('intentOpacityDiv').style.display = 'none'
document.getElementById('intentOpacityDiv').remove()
}
} else if (divId === 'wizParDiv0') {
if (document.getElementById('intentOpacityDiv0') != null) {
document.getElementById('intentOpacityDiv0').style.display = 'none'
document.getElementById('intentOpacityDiv0').remove()
}
} else if (divId === 'wizParDiv2') {
if (document.getElementById('intentOpacityDiv2') != null) {
document.getElementById('intentOpacityDiv2').style.display = 'none'
document.getElementById('intentOpacityDiv2').remove()
}
}
}
Expand Down

0 comments on commit 69d6ff7

Please sign in to comment.