|
7776 | 7776 | this.gcookie = void 0; |
7777 | 7777 | _classPrivateFieldLooseBase(this, _logger$9)[_logger$9] = logger; |
7778 | 7778 | this.gcookie = this.getGuid() || customId; |
7779 | | - console.log('this.gcookie', this.gcookie); |
7780 | 7779 | } |
7781 | 7780 |
|
7782 | 7781 | getGuid() { |
|
11616 | 11615 | case WVE_QUERY_PARAMS.SDK_CHECK: |
11617 | 11616 | if (parentWindow) { |
11618 | 11617 | logger$1.debug('SDK version check'); |
11619 | | - const sdkVersion = '1.14.4'; |
| 11618 | + const sdkVersion = '1.14.5'; |
11620 | 11619 | parentWindow.postMessage({ |
11621 | 11620 | message: 'SDKVersion', |
11622 | 11621 | accountId, |
|
15341 | 15340 | let proto = document.location.protocol; |
15342 | 15341 | proto = proto.replace(':', ''); |
15343 | 15342 | dataObject.af = { ...dataObject.af, |
15344 | | - lib: 'web-sdk-v1.14.4', |
| 15343 | + lib: 'web-sdk-v1.14.5', |
15345 | 15344 | protocol: proto, |
15346 | 15345 | ...$ct.flutterVersion |
15347 | 15346 | }; // app fields |
|
16289 | 16288 | _classPrivateFieldLooseBase(this, _account)[_account] = new Account((_clevertap$account = clevertap.account) === null || _clevertap$account === void 0 ? void 0 : _clevertap$account[0], clevertap.region || ((_clevertap$account2 = clevertap.account) === null || _clevertap$account2 === void 0 ? void 0 : _clevertap$account2[1]), clevertap.targetDomain || ((_clevertap$account3 = clevertap.account) === null || _clevertap$account3 === void 0 ? void 0 : _clevertap$account3[2]), clevertap.token || ((_clevertap$account4 = clevertap.account) === null || _clevertap$account4 === void 0 ? void 0 : _clevertap$account4[3])); |
16290 | 16289 | encryption.key = (_clevertap$account5 = clevertap.account) === null || _clevertap$account5 === void 0 ? void 0 : _clevertap$account5[0].id; // Custom Guid will be set here |
16291 | 16290 |
|
16292 | | - let result = validateCustomCleverTapID(clevertap === null || clevertap === void 0 ? void 0 : (_clevertap$config = clevertap.config) === null || _clevertap$config === void 0 ? void 0 : _clevertap$config.customId); |
| 16291 | + const result = validateCustomCleverTapID(clevertap === null || clevertap === void 0 ? void 0 : (_clevertap$config = clevertap.config) === null || _clevertap$config === void 0 ? void 0 : _clevertap$config.customId); |
16293 | 16292 |
|
16294 | 16293 | if (!(result === null || result === void 0 ? void 0 : result.isValid)) { |
16295 | 16294 | _classPrivateFieldLooseBase(this, _logger)[_logger].error(result === null || result === void 0 ? void 0 : result.error); |
|
16945 | 16944 | const result = validateCustomCleverTapID(customId); |
16946 | 16945 | /* Only add Custom Id if no existing id is present */ |
16947 | 16946 |
|
16948 | | - if (!_classPrivateFieldLooseBase(this, _device)[_device].gcookie) { |
| 16947 | + if (_classPrivateFieldLooseBase(this, _device)[_device].gcookie) { |
16949 | 16948 | return; |
16950 | 16949 | } |
16951 | 16950 |
|
|
17182 | 17181 | } |
17183 | 17182 |
|
17184 | 17183 | getSDKVersion() { |
17185 | | - return 'web-sdk-v1.14.4'; |
| 17184 | + return 'web-sdk-v1.14.5'; |
17186 | 17185 | } |
17187 | 17186 |
|
17188 | 17187 | defineVariable(name, defaultValue) { |
|
0 commit comments