diff --git a/CHANGELOG.md b/CHANGELOG.md index b559d06a..6f29899a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## X.X.X +- Added a new flag, 'loadAPMScriptsAsync', which can load the APM related scripts automatically for Async implementations + ## 23.2.2 - Default max segmentation value count changed from 30 to 100 diff --git a/cypress/.eslintrc.js b/cypress/.eslintrc.js index abe354e6..3048bbdf 100644 --- a/cypress/.eslintrc.js +++ b/cypress/.eslintrc.js @@ -9,7 +9,7 @@ module.exports = { "cypress/no-assigning-return-values": "error", "cypress/no-unnecessary-waiting": "off", "cypress/assertion-before-screenshot": "warn", - "cypress/unsafe-to-chain-command": "warn", + "cypress/unsafe-to-chain-command": "off", "cypress/no-force": "warn", "cypress/no-async-tests": "error", "cypress/no-pause": "error", diff --git a/examples/example_apm.html b/examples/example_apm.html index fe439ff6..322357b2 100644 --- a/examples/example_apm.html +++ b/examples/example_apm.html @@ -10,44 +10,18 @@ diff --git a/examples/example_apm_async.html b/examples/example_apm_async.html new file mode 100644 index 00000000..1816af1c --- /dev/null +++ b/examples/example_apm_async.html @@ -0,0 +1,68 @@ + + + + + + + + + + + + + + +
+ +
+ +

Countly

+
+ + + \ No newline at end of file diff --git a/examples/examples_feedback_widgets.html b/examples/examples_feedback_widgets.html index 2efb62d5..e08a522d 100644 --- a/examples/examples_feedback_widgets.html +++ b/examples/examples_feedback_widgets.html @@ -28,8 +28,17 @@ console.log(err); return; } - // Decide which which widget to show. Here the first one is selected. Check the below implementation for a more elaborate version. + + // Decide which which widget to show. Here the first rating widget is selected. + var i = countlyPresentableFeedback.length - 1; var countlyFeedbackWidget = countlyPresentableFeedback[0]; + while (i--) { + // You can change 'rating' to 'nps' or 'survey'. Or you can create your own logic here. + if (countlyPresentableFeedback[i].type === 'rating') { + countlyFeedbackWidget = countlyPresentableFeedback[i]; + break; + } + } // Define the element ID and the class name (optional) var selectorId = ""; diff --git a/examples/mpa/index.html b/examples/mpa/index.html index b9f798ae..0b6d285f 100644 --- a/examples/mpa/index.html +++ b/examples/mpa/index.html @@ -11,7 +11,7 @@ --> -