From f69b3f004cd87844b2339458cfe75bb6aef8662a Mon Sep 17 00:00:00 2001 From: Rodrigo Rodriguez Date: Sun, 9 Jul 2023 16:29:30 -0300 Subject: [PATCH] fix(all): Minor changes in PROD. --- packages/default.gbui/src/GBUIApp.js | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/packages/default.gbui/src/GBUIApp.js b/packages/default.gbui/src/GBUIApp.js index a444c7be..192b74dc 100644 --- a/packages/default.gbui/src/GBUIApp.js +++ b/packages/default.gbui/src/GBUIApp.js @@ -40,7 +40,7 @@ import GBBulletPlayer from './players/GBBulletPlayer.js'; import SidebarMenu from './components/SidebarMenu.js'; import SEO from './components/SEO.js'; import GBCss from './components/GBCss.js'; -import { DirectLine, createCognitiveServicesSpeechServicesPonyfillFactory } from 'botframework-directlinejs'; +import { DirectLine} from 'botframework-directlinejs'; import { ConnectionStatus } from 'botframework-directlinejs'; import ReactWebChat from 'botframework-webchat'; import { UserAgentApplication } from 'msal'; @@ -303,19 +303,6 @@ class GBUIApp extends React.Component { ); - async function fetchCredentials() { - const res = await fetch('/api/authorizationtoken'); - - if (res.ok) { - return { - authorizationToken: await res.text(), - region: 'westus2' - }; - } else { - throw new Error('Failed to retrieve authorization token for Cognitive Services.'); - } - } - if (this.state.line) { if (this.state.instanceClient) { gbCss = ;