Skip to content

Commit

Permalink
Increased the timer to 300ms for adjustIframeHeight
Browse files Browse the repository at this point in the history
  • Loading branch information
KambleSonam committed Jul 10, 2024
1 parent eef647f commit e09cc41
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 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.8.3] - 10 July, 2024
- Fixes an issue where contentDocument was not getting accessed for Web Popups as iframe wasn't ready.

## [1.8.2] - 18 June, 2024
- Fixes an issue in getLocation function where the location data was not sent in requests.
- Exposes a method getSDKVersion
Expand Down
8 changes: 3 additions & 5 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.8.2",
"version": "1.8.3",
"description": "",
"main": "clevertap.js",
"scripts": {
Expand Down
3 changes: 1 addition & 2 deletions src/util/tr.js
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,6 @@ const _tr = (msg, {
let inDoc = iframe.contentDocument || iframe.contentWindow
if (inDoc.document) inDoc = inDoc.document
// safari iphone 7+ needs this.
adjustIFrameHeight()
const _timer = setInterval(() => {
if (inDoc.readyState === 'complete') {
clearInterval(_timer)
Expand All @@ -543,7 +542,7 @@ const _tr = (msg, {
const contentDiv = document.getElementById('wiz-iframe').contentDocument.getElementById('contentDiv')
setupClickUrl(onClick, targetingMsgJson, contentDiv, divId, legacy)
}
}, 10)
}, 300)
}
} else {
iframe.onload = () => {
Expand Down

0 comments on commit e09cc41

Please sign in to comment.