Skip to content

Commit

Permalink
Merge pull request #319 from CleverTap/develop
Browse files Browse the repository at this point in the history
SDK Release 1.11.12
  • Loading branch information
ThisIsRaghavGupta authored Dec 11, 2024
2 parents 9b4b09b + 314a0ee commit c8206f1
Show file tree
Hide file tree
Showing 10 changed files with 35 additions and 16 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
types: [opened, synchronize, reopened]
jobs:
build:
runs-on: macos-13
runs-on: macos-14-large
steps:
- uses: actions/checkout@v2
- name: Use node.js version 10.24.1
Expand All @@ -21,7 +21,7 @@ jobs:
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v2
- uses: actions/cache@v4
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
types: [published]
jobs:
build:
runs-on: macos-13
runs-on: macos-14-large
steps:
- uses: actions/checkout@v2
- name: Use node.js version 10.24.1
Expand All @@ -14,7 +14,7 @@ jobs:
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v2
- uses: actions/cache@v4
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
Expand Down Expand Up @@ -45,4 +45,4 @@ jobs:
# - name: Copy file to S3
# # S3_bucket/clevertap.js for beta, /a.js when moving to prod for all
# run: |
# aws s3 cp clevertap.min.js s3://${{ secrets.S3_BUCKET_PATH }}
# aws s3 cp clevertap.min.js s3://${{ secrets.S3_BUCKET_PATH }}
4 changes: 2 additions & 2 deletions .github/workflows/sw_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
types: [opened, synchronize, reopened]
jobs:
build:
runs-on: macos-13
runs-on: macos-14-large
steps:
- uses: actions/checkout@v2
- name: Use node.js version 10.24.1
Expand All @@ -21,7 +21,7 @@ jobs:
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v2
- uses: actions/cache@v4
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/sw_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
types: [published]
jobs:
build:
runs-on: macos-13
runs-on: macos-14-large
steps:
- uses: actions/checkout@v2
- name: Use node.js version 10.24.1
Expand All @@ -14,7 +14,7 @@ jobs:
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v2
- uses: actions/cache@v4
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
Expand All @@ -34,4 +34,3 @@ jobs:
- name: Copy file to S3
run: |
aws s3 cp sw_webpush.min.js s3://${{ secrets.S3_BUCKET_PATH }}/sw_webpush.js --acl public-read
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.12] 11th Dec, 2024
- Initialize Web Inbox on document readyState complete

## [1.11.11] 3rd Dec, 2024
- Support for Personalisation in HTML & JSON for Visual Editor

Expand Down
15 changes: 12 additions & 3 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.11",
"version": "1.11.12",
"description": "",
"main": "clevertap.js",
"scripts": {
Expand Down
8 changes: 8 additions & 0 deletions src/modules/web-inbox/helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,14 @@ export const saveInboxMessages = (messages) => {

export const initializeWebInbox = (logger) => {
return new Promise((resolve, reject) => {
// Adding this as a band-aid for SUC-126380
// Adds ct-web-inbox element in dom which is not visible if Web Inbox Config in LS
document.addEventListener('readystatechange', function () {
if (document.readyState === 'complete') {
addWebInbox(logger)
resolve()
}
})
if (document.readyState === 'complete') {
addWebInbox(logger)
resolve()
Expand Down

0 comments on commit c8206f1

Please sign in to comment.