Skip to content

Commit 6c656b5

Browse files
author
Prashant.patil
committed
SCAL-244420: check mixpanel sanity
1 parent 1371d26 commit 6c656b5

File tree

2 files changed

+0
-26
lines changed

2 files changed

+0
-26
lines changed

src/embed/base.ts

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -228,41 +228,16 @@ export const getIsInitCalled = (): boolean => !!getValueFromWindow(initFlagKey)?
228228
*/
229229
export const init = (embedConfig: EmbedConfig): AuthEventEmitter => {
230230
sanity(embedConfig);
231-
//resetAllCachedServices();
232-
/*embedConfig = setEmbedConfig(
233-
backwardCompat({
234-
...CONFIG_DEFAULTS,
235-
...embedConfig,
236-
thoughtSpotHost: getThoughtSpotHost(embedConfig),
237-
}),
238-
);
239231

240-
setGlobalLogLevelOverride(embedConfig.logLevel);
241-
registerReportingObserver();
242-
*/
243232
const authEE = new EventEmitter<AuthStatus | AuthEvent>();
244233
setAuthEE(authEE);
245-
handleAuth();
246234

247235
const { password, ...configToTrack } = getEmbedConfig();
248-
/* uploadMixpanelEvent(MIXPANEL_EVENT.VISUAL_SDK_CALLED_INIT, {
249-
...configToTrack,
250-
usedCustomizationSheet: embedConfig.customizations?.style?.customCSSUrl != null,
251-
usedCustomizationVariables: embedConfig.customizations?.style?.customCSS?.variables != null,
252-
usedCustomizationRules:
253-
embedConfig.customizations?.style?.customCSS?.rules_UNSTABLE != null,
254-
usedCustomizationStrings: !!embedConfig.customizations?.content?.strings,
255-
usedCustomizationIconSprite: !!embedConfig.customizations?.iconSpriteUrl,
256-
}); */
257236

258237
if (getEmbedConfig().callPrefetch) {
259238
prefetch(getEmbedConfig().thoughtSpotHost);
260239
}
261240

262-
// Resolves the promise created in the initPromiseKey
263-
/*getValueFromWindow<InitFlagStore>(initFlagKey).initPromiseResolve(authEE);
264-
getValueFromWindow<InitFlagStore>(initFlagKey).isInitCalled = true; */
265-
266241
return authEE as AuthEventEmitter;
267242
};
268243

src/utils.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,6 @@ export function storeValueInWindow<T>(
354354
value: T,
355355
options: { ignoreIfAlreadyExists?: boolean } = {},
356356
): T {
357-
358357
if (typeof window !== undefined) {
359358
return null;
360359
}

0 commit comments

Comments
 (0)