Skip to content

Commit eed0d9b

Browse files
doc: update warn when vuid is not enabled
1 parent f4d5ed5 commit eed0d9b

File tree

1 file changed

+19
-20
lines changed

1 file changed

+19
-20
lines changed

lib/optimizely/index.ts

Lines changed: 19 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,25 @@
1-
/****************************************************************************
2-
* Copyright 2020-2024, Optimizely, Inc. and contributors *
3-
* *
4-
* Licensed under the Apache License, Version 2.0 (the "License"); *
5-
* you may not use this file except in compliance with the License. *
6-
* You may obtain a copy of the License at *
7-
* *
8-
* https://www.apache.org/licenses/LICENSE-2.0 *
9-
* *
10-
* Unless required by applicable law or agreed to in writing, software *
11-
* distributed under the License is distributed on an "AS IS" BASIS, *
12-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. *
13-
* See the License for the specific language governing permissions and *
14-
* limitations under the License. *
15-
***************************************************************************/
1+
/**
2+
* Copyright 2020-2024, Optimizely
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* https://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
1616

1717
import { LoggerFacade, ErrorHandler } from '../modules/logging';
1818
import { sprintf, objectValues } from '../utils/fns';
1919
import { NotificationCenter } from '../core/notification_center';
2020
import { EventProcessor } from '../modules/event_processor';
2121

2222
import { IOdpManager } from '../core/odp/odp_manager';
23-
import { OdpConfig } from '../core/odp/odp_config';
2423
import { OdpEvent } from '../core/odp/odp_event';
2524
import { OptimizelySegmentOption } from '../core/odp/optimizely_segment_option';
2625

@@ -1328,12 +1327,12 @@ export default class Optimizely implements Client {
13281327
});
13291328
this.readyTimeouts = {};
13301329
return eventProcessorStoppedPromise.then(
1331-
function() {
1330+
function () {
13321331
return {
13331332
success: true,
13341333
};
13351334
},
1336-
function(err) {
1335+
function (err) {
13371336
return {
13381337
success: false,
13391338
reason: String(err),
@@ -1404,7 +1403,7 @@ export default class Optimizely implements Client {
14041403
});
14051404
};
14061405
const readyTimeout = setTimeout(onReadyTimeout, timeoutValue);
1407-
const onClose = function() {
1406+
const onClose = function () {
14081407
resolveTimeoutPromise({
14091408
success: false,
14101409
reason: 'Instance closed',
@@ -1765,7 +1764,7 @@ export default class Optimizely implements Client {
17651764
}
17661765

17671766
if (!this.odpManager.isVuidEnabled()) {
1768-
this.logger.log(LOG_LEVEL.WARNING, 'getVuid() unavailable for this platform', MODULE_NAME);
1767+
this.logger.log(LOG_LEVEL.WARNING, 'getVuid() unavailable for this platform or was not explicitly enabled.', MODULE_NAME);
17691768
return undefined;
17701769
}
17711770

0 commit comments

Comments
 (0)