Skip to content

Commit 0af8398

Browse files
authored
Merge pull request #19 from Countly/minor-fixes
Minor fixes
2 parents 5dfe7c7 + f86fa0b commit 0af8398

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

modules/CountlyClass.js

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@ constructor(ob) {
518518

519519
notifyLoaders();
520520

521-
setTimeout(function () {
521+
setTimeout(() => {
522522
if (!Countly.noHeartBeat) {
523523
heartBeat();
524524
} else {
@@ -801,13 +801,17 @@ constructor(ob) {
801801
/**
802802
* Remove consent for specific feature, meaning, user opted out to track that data (either core feature of from custom feature group)
803803
* @param {string|array} feature - name of the feature, possible values, "sessions","events","views","scrolls","clicks","forms","crashes","attribution","users", etc or custom provided through {@link Countly.group_features}
804-
* @param {Boolean} enforceConsentUpdate - regulates if a request will be sent to the server or not. If true, removing consents will send a request to the server and if false, consents will be removed without a request
805804
*/
806805
this.remove_consent = function (feature) {
807806
log(logLevelEnums.INFO, "remove_consent, Removing consent for [" + feature + "]");
808807
this.remove_consent_internal(feature, true);
809808
};
810-
// removes consent without updating
809+
810+
/**
811+
* Remove consent for specific feature, meaning, user opted out to track that data (either core feature of from custom feature group)
812+
* @param {string|array} feature - name of the feature, possible values, "sessions","events","views","scrolls","clicks","forms","crashes","attribution","users", etc or custom provided through {@link Countly.group_features}
813+
* @param {Boolean} enforceConsentUpdate - regulates if a request will be sent to the server or not. If true, removing consents will send a request to the server and if false, consents will be removed without a request
814+
*/
811815
this.remove_consent_internal = function (feature, enforceConsentUpdate) {
812816
// if true updateConsent will execute when possible
813817
enforceConsentUpdate = enforceConsentUpdate || false;
@@ -1540,7 +1544,7 @@ constructor(ob) {
15401544

15411545
/**
15421546
* Automatically track javascript errors that happen on the website and report them to the server
1543-
* @param {string=} segments - additional key value pairs you want to provide with error report, like versions of libraries used, etc.
1547+
* @param {Object} segments - additional key value pairs you want to provide with error report, like versions of libraries used, etc.
15441548
* */
15451549
this.track_errors = function (segments) {
15461550
if (!isBrowser) {
@@ -1608,7 +1612,7 @@ constructor(ob) {
16081612
/**
16091613
* Log an exception that you caught through try and catch block and handled yourself and just want to report it to server
16101614
* @param {Object} err - error exception object provided in catch block
1611-
* @param {string=} segments - additional key value pairs you want to provide with error report, like versions of libraries used, etc.
1615+
* @param {Object} segments - additional key value pairs you want to provide with error report, like versions of libraries used, etc.
16121616
* */
16131617
this.log_error = function (err, segments) {
16141618
log(logLevelEnums.INFO, "log_error, Logging errors");

0 commit comments

Comments
 (0)