fix(all): Minor changes in PROD.
This commit is contained in:
parent
0b5fa3eec2
commit
f69b3f004c
1 changed files with 1 additions and 14 deletions
|
@ -40,7 +40,7 @@ import GBBulletPlayer from './players/GBBulletPlayer.js';
|
||||||
import SidebarMenu from './components/SidebarMenu.js';
|
import SidebarMenu from './components/SidebarMenu.js';
|
||||||
import SEO from './components/SEO.js';
|
import SEO from './components/SEO.js';
|
||||||
import GBCss from './components/GBCss.js';
|
import GBCss from './components/GBCss.js';
|
||||||
import { DirectLine, createCognitiveServicesSpeechServicesPonyfillFactory } from 'botframework-directlinejs';
|
import { DirectLine} from 'botframework-directlinejs';
|
||||||
import { ConnectionStatus } from 'botframework-directlinejs';
|
import { ConnectionStatus } from 'botframework-directlinejs';
|
||||||
import ReactWebChat from 'botframework-webchat';
|
import ReactWebChat from 'botframework-webchat';
|
||||||
import { UserAgentApplication } from 'msal';
|
import { UserAgentApplication } from 'msal';
|
||||||
|
@ -303,19 +303,6 @@ class GBUIApp extends React.Component {
|
||||||
</div>
|
</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.line) {
|
||||||
if (this.state.instanceClient) {
|
if (this.state.instanceClient) {
|
||||||
gbCss = <GBCss instance={this.state.instanceClient} />;
|
gbCss = <GBCss instance={this.state.instanceClient} />;
|
||||||
|
|
Loading…
Add table
Reference in a new issue