Skip to content

Commit 07accad

Browse files
author
FalkWolsky
committed
Updating Product Support Identifier
1 parent 868af36 commit 07accad

File tree

1 file changed

+8
-4
lines changed
  • client/packages/lowcoder/src

1 file changed

+8
-4
lines changed

client/packages/lowcoder/src/app.tsx

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -130,12 +130,16 @@ class AppIndex extends React.Component<AppIndexProps, any> {
130130
// make sure all users in this app have checked login info
131131
if (!this.props.isFetchUserFinished || (this.props.currentUserId && !this.props.fetchHomeDataFinished)) {
132132
const hideLoadingHeader = isTemplate || isAuthUnRequired(pathname);
133+
return <ProductLoading hideHeader={hideLoadingHeader} />;
134+
}
135+
else {
133136
// if the user just logged in, we send the event to posthog
134-
if (sessionStorage.getItem('_just_logged_in_')) {
135-
posthog.identify(this.props.currentUserId);
136-
sessionStorage.removeItem('_just_logged_in_');
137+
if (isLocalhost || isLowCoderDomain) {
138+
if (sessionStorage.getItem('_just_logged_in_')) {
139+
posthog.identify(this.props.currentUserId);
140+
sessionStorage.removeItem('_just_logged_in_');
141+
}
137142
}
138-
return <ProductLoading hideHeader={hideLoadingHeader} />;
139143
}
140144

141145
// persisting the language in local storage

0 commit comments

Comments
 (0)