Skip to content

Commit

Permalink
fix(all): Minor changes in PROD.
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigorodriguez committed Jul 9, 2023
1 parent 0b5fa3e commit f69b3f0
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions packages/default.gbui/src/GBUIApp.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -303,19 +303,6 @@ class GBUIApp extends React.Component {
</div>
);

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 = <GBCss instance={this.state.instanceClient} />;
Expand Down

0 comments on commit f69b3f0

Please sign in to comment.