File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -209,14 +209,14 @@ export const init = (embedConfig: EmbedConfig): AuthEventEmitter => {
209209 if ( getEmbedConfig ( ) . callPrefetch ) {
210210 prefetch ( getEmbedConfig ( ) . thoughtSpotHost ) ;
211211 }
212- validateThoughtSpotHost ( embedConfig . thoughtSpotHost , authEE ) ;
212+ validateThoughtSpotHost ( embedConfig . thoughtSpotHost ) ;
213213 return authEE as AuthEventEmitter ;
214214} ;
215215
216216
217- const validateThoughtSpotHost = async ( thoughtSpotHost : string , authEE : EventEmitter < AuthStatus | AuthEvent > ) => {
217+ const validateThoughtSpotHost = async ( thoughtSpotHost : string ) => {
218218 try {
219- const response = await fetch ( `${ thoughtSpotHost } /config ` ) ;
219+ const response = await fetch ( `${ thoughtSpotHost } ` ) ;
220220 if ( response . status !== 200 ) {
221221 logger . error ( `Check if Thoughtspot Host is Valid: ${ response . statusText } ` ) ;
222222 notifyAuthFailure ( AuthFailureType . INVALID_TS_HOST ) ;
You can’t perform that action at this time.
0 commit comments