Skip to content

Commit 1749256

Browse files
zakharchenkoAndriiAndrii Zakharchenko
andauthored
fix(js): call right method for Countly.init function (#202)
Co-authored-by: Andrii Zakharchenko <[email protected]>
1 parent 6a8b6bd commit 1749256

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Countly.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ Countly.TemporaryDeviceIDString = 'TemporaryDeviceID';
5757
// countly initialization
5858
Countly.init = async function (serverUrl, appKey, deviceId) {
5959
Countly.logError('init is deprecated, use initWithConfig instead');
60-
const countlyConfig = new CountlyConfig(serverUrl, appKey).setDeviceId(deviceId);
60+
const countlyConfig = new CountlyConfig(serverUrl, appKey).setDeviceID(deviceId);
6161
Countly.initWithConfig(countlyConfig);
6262
};
6363

@@ -448,7 +448,7 @@ Countly.setLoggingEnabled = function (enabled = true) {
448448

449449
/**
450450
* @deprecated in 23.02.0 : use 'countlyConfig.setLocation' intead of 'setLocationInit'.
451-
*
451+
*
452452
* Set user initial location
453453
* Should be called before init
454454
* @param {ISO Country code for the user's country} countryCode
@@ -572,7 +572,7 @@ Countly.setHttpPostForced = function (boolean = true) {
572572
Countly.isCrashReportingEnabled = false;
573573
/**
574574
* @deprecated in 23.02.0 : use 'countlyConfig.enableCrashReporting' intead of 'enableCrashReporting'.
575-
*
575+
*
576576
* Enable crash reporting to report unhandled crashes to Countly
577577
* Should be called before Countly init
578578
*/
@@ -1445,7 +1445,7 @@ Countly.remoteConfigClearValues = async function () {
14451445
};
14461446
/**
14471447
* @deprecated in 23.02.0 : use 'countlyConfig.setStarRatingDialogTexts' intead of 'setStarRatingDialogTexts'.
1448-
*
1448+
*
14491449
* Set's the text's for the different fields in the star rating dialog. Set value null if for some field you want to keep the old value
14501450
*
14511451
* @param {String} starRatingTextTitle - dialog's title text (Only for Android)
@@ -1741,7 +1741,7 @@ Countly.enableAttribution = async function (attributionID = '') {
17411741
/**
17421742
*
17431743
* @deprecated in 23.02.0 : use 'Countly.recordIndirectAttribution' intead of 'recordAttributionID'.
1744-
*
1744+
*
17451745
* set attribution Id for campaign attribution reporting.
17461746
* Currently implemented for iOS only
17471747
* For Android just call the enableAttribution to enable campaign attribution.

0 commit comments

Comments
 (0)