Skip to content

Commit c0bed86

Browse files
author
Prashant.patil
committed
check 2
1 parent dfc4005 commit c0bed86

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

src/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export const getThoughtSpotHost = (config: EmbedConfig): string => {
3333
throw new Error(ERROR_MESSAGE.INVALID_THOUGHTSPOT_HOST);
3434
}
3535

36-
const protocol = urlParts[2] || (typeof window !== 'undefined' ? window.location.protocol : 'https:');
36+
const protocol = urlParts[2] || 'https:';
3737
const host = urlParts[3];
3838
let path = urlParts[6];
3939
// Lose the trailing / if any

src/embed/base.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,6 @@ export {
6767
notifyAuthFailure, notifyAuthSDKSuccess, notifyAuthSuccess, notifyLogout,
6868
};
6969

70-
if (typeof global !== 'undefined' && typeof window === 'undefined') {
71-
(global as any).window = global;
72-
}
7370
/**
7471
* Perform authentication on the ThoughtSpot app as applicable.
7572
*/

0 commit comments

Comments
 (0)