From 5f7d391095c06e92906ca5aab14fb0e39061a8e5 Mon Sep 17 00:00:00 2001 From: Nandana-NNR Date: Tue, 29 Oct 2024 16:26:40 +0530 Subject: [PATCH] comment out testtoken --- src/App.js | 14 +++++++------- src/LifeCycleHistory.js | 4 ++-- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/App.js b/src/App.js index e50532a7..b63b6cfe 100644 --- a/src/App.js +++ b/src/App.js @@ -103,7 +103,7 @@ export default class App extends Base { const standalone = new URLSearchParams(appUrl.search).get('standalone'); const standalonePrefix = new URLSearchParams(appUrl.search).get('standalonePrefix'); this.systemui = new URLSearchParams(window.location.search).get('systemui'); - this.testToken = new URLSearchParams(window.location.search).get('testtoken'); + // this.testToken = new URLSearchParams(window.location.search).get('testtoken'); this.pubSubUuidPresent = false; this.appContinue = false; process.env.LIFECYCLE_VALIDATION = lifecycle; @@ -111,7 +111,7 @@ export default class App extends Base { process.env.MF_VALUE = false; testContext ? (process.env.TESTCONTEXT = JSON.parse(testContext)) : (process.env.TESTCONTEXT = false); process.env.TESTCONTEXT = true; // Making TESTCONTEXT = true by default. This line will be removed in later stages when required - process.env.TEST_TOKEN = this.testToken; + // process.env.TEST_TOKEN = this.testToken; process.env.REPORTINGID = reportingId; process.env.STANDALONE = standalone; process.env.STANDALONE_PREFIX = standalonePrefix; @@ -417,11 +417,11 @@ export default class App extends Base { console.log('Error getting App Id :: ', err); } - if (query.params.testtoken) { - process.env.TEST_TOKEN = query.params.testtoken; - } else { - logger.error('No Test Token Found in Parameter Initialization response...', 'getParameterInitializationValues'); - } + // if (query.params.testtoken) { + // process.env.TEST_TOKEN = query.params.testtoken; + // } else { + // logger.error('No Test Token Found in Parameter Initialization response...', 'getParameterInitializationValues'); + // } if (query.params.macaddress) { process.env.MACADDRESS = query.params.macaddress; diff --git a/src/LifeCycleHistory.js b/src/LifeCycleHistory.js index 2da8132d..4b1eb447 100644 --- a/src/LifeCycleHistory.js +++ b/src/LifeCycleHistory.js @@ -108,13 +108,13 @@ export default class LifecycleHistory { const query = JSON.parse(event.data.query); // Establishing a pubSub connection if FCA receives an intent in the navigateTo event with the following parameters. - if (query.params && query.params.appId && query.params.testtoken && query.params.macaddress) { + if (query.params && query.params.appId && query.params.macaddress) { // PUBSUB_CONNECTION environment variable has a pubsub client instance and calls the isConnected function to check the Websocket status. if (!process.env.PUBSUB_CONNECTION || (process.env.PUBSUB_CONNECTION && !process.env.PUBSUB_CONNECTION.isConnected())) { process.env.APP_TYPE = query.params.appType ? query.params.appType.toLowerCase() : CONSTANTS.FIREBOLT_CONST; process.env.CURRENT_APPID = query.params.appId; process.env.MACADDRESS = query.params.macaddress; - process.env.TEST_TOKEN = query.params.testtoken; + // process.env.TEST_TOKEN = query.params.testtoken; console.log('2507 test log - query param pubsubtoken discovery navigate', query.params.pubSubToken); process.env.PUB_SUB_TOKEN = query.params.pubSubToken; console.log('2507 test log - process env pubsubtoken discovery navigate', process.env.PUB_SUB_TOKEN);