@@ -422,6 +422,14 @@ Promise.all([plugins.dbConnection(countlyConfig), plugins.dbConnection("countly_
422422 app . loadThemeFiles ( curTheme ) ;
423423 app . dashboard_headers = plugins . getConfig ( "security" ) . dashboard_additional_headers ;
424424
425+ var overriddenCountlyNamedType = COUNTLY_NAMED_TYPE ;
426+ var whiteLabelingConfig = plugins . getConfig ( "white-labeling" ) ;
427+ if ( whiteLabelingConfig && whiteLabelingConfig . footerLabel && whiteLabelingConfig . footerLabel . length ) {
428+ overriddenCountlyNamedType = whiteLabelingConfig . footerLabel ;
429+ }
430+
431+ COUNTLY_NAMED_TYPE = overriddenCountlyNamedType ;
432+
425433 if ( typeof plugins . getConfig ( 'frontend' ) . countly_tracking !== 'boolean' && plugins . isPluginEnabled ( 'tracker' ) ) {
426434 plugins . updateConfigs ( countlyDb , 'frontend' , { countly_tracking : true } ) ;
427435 }
@@ -929,6 +937,12 @@ Promise.all([plugins.dbConnection(countlyConfig), plugins.dbConnection("countly_
929937 licenseNotification , licenseError ;
930938 var isLocked = false ;
931939 configs . export_limit = plugins . getConfig ( "api" ) . export_limit ;
940+
941+ var currentWhiteLabelingConfig = plugins . getConfig ( "white-labeling" ) ;
942+ var overriddenCountlyNamedType = COUNTLY_NAMED_TYPE ;
943+ if ( currentWhiteLabelingConfig && currentWhiteLabelingConfig . footerLabel && currentWhiteLabelingConfig . footerLabel . length ) {
944+ overriddenCountlyNamedType = currentWhiteLabelingConfig . footerLabel ;
945+ }
932946 app . loadThemeFiles ( configs . theme , async function ( theme ) {
933947 if ( configs . _user . theme ) {
934948 res . cookie ( "theme" , configs . theme ) ;
@@ -1004,7 +1018,7 @@ Promise.all([plugins.dbConnection(countlyConfig), plugins.dbConnection("countly_
10041018 licenseError,
10051019 ssr : serverSideRendering ,
10061020 timezones : timezones ,
1007- countlyTypeName : COUNTLY_NAMED_TYPE ,
1021+ countlyTypeName : overriddenCountlyNamedType ,
10081022 countlyTypeTrack : COUNTLY_TRACK_TYPE ,
10091023 countlyTypeCE : COUNTLY_TYPE_CE ,
10101024 countly_tracking,
@@ -1037,7 +1051,7 @@ Promise.all([plugins.dbConnection(countlyConfig), plugins.dbConnection("countly_
10371051 countlyVersion : req . countly . version ,
10381052 countlyType : COUNTLY_TYPE_CE ,
10391053 countlyTrial : COUNTLY_TRIAL ,
1040- countlyTypeName : COUNTLY_NAMED_TYPE ,
1054+ countlyTypeName : overriddenCountlyNamedType ,
10411055 feedbackLink : COUNTLY_FEEDBACK_LINK ,
10421056 documentationLink : COUNTLY_DOCUMENTATION_LINK ,
10431057 helpCenterLink : COUNTLY_HELPCENTER_LINK ,
0 commit comments