diff --git a/CHANGELOG.md b/CHANGELOG.md index d00506b..bfe7a97 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 24.4.0 + +* Added support for Feedback Widgets' terms and conditions + ## 23.12.6 * Mitigated an issue where error tracking could prevent SDK initialization in async mode diff --git a/modules/Constants.js b/modules/Constants.js index 0ef2b4f..a37cdce 100644 --- a/modules/Constants.js +++ b/modules/Constants.js @@ -104,7 +104,7 @@ var healthCheckCounterEnum = Object.freeze({ errorMessage: "cly_hc_error_message", }); -var SDK_VERSION = "23.12.5"; +var SDK_VERSION = "24.4.0"; var SDK_NAME = "javascript_native_web"; // Using this on document.referrer would return an array with 17 elements in it. The 12th element (array[11]) would be the path we are looking for. Others would be things like password and such (use https://regex101.com/ to check more) diff --git a/modules/CountlyClass.js b/modules/CountlyClass.js index 15de017..b8472ec 100644 --- a/modules/CountlyClass.js +++ b/modules/CountlyClass.js @@ -3061,11 +3061,12 @@ class CountlyClass { url += "&platform=" + this.platform; url += "&app_version=" + this.app_version; url += "&sdk_version=" + sdkVersion; + var customObjectToSendWithTheWidget = {}; + customObjectToSendWithTheWidget.tc = 1; // indicates SDK supports opening links from the widget in a new tab if (feedbackWidgetSegmentation) { - var customObjectToSendWithTheWidget = {}; customObjectToSendWithTheWidget.sg = feedbackWidgetSegmentation; - url += "&custom=" + JSON.stringify(customObjectToSendWithTheWidget); } + url += "&custom=" + JSON.stringify(customObjectToSendWithTheWidget); // Origin is passed to the popup so that it passes it back in the postMessage event // Only web SDK passes origin and web url += "&origin=" + passedOrigin; diff --git a/package.json b/package.json index 6e86b99..7f349cc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "countly-sdk-js", - "version": "23.12.5", + "version": "24.4.0", "description": "Countly JavaScript SDK", "type": "module", "main": "Countly.js",