Skip to content

Commit

Permalink
Refactor useAppLoader to remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
Noggling committed Oct 16, 2024
1 parent b3ba68c commit eef4909
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function getClientIdFormScope(scope: string): string | undefined {

export function createPortalFramework(portalConfig: PortalConfig) {
return (config: FusionConfigurator) => {
config.logger.level = 4; // (portalConfig.logger?.level as LoggerLevel) || 0;
config.logger.level = (portalConfig.logger?.level as LoggerLevel) || 0;

/** Legacy Fusion ClientId used in legacy auth provider */
(window as { clientId?: string }).clientId = getClientIdFormScope(
Expand Down Expand Up @@ -266,11 +266,6 @@ export function createPortalFramework(portalConfig: PortalConfig) {
}

config.onInitialized<[NavigationModule, TelemetryModule, AppModule, PortalConfigModule]>(async (fusion) => {
// const appService = await fusion.serviceDiscovery.resolveService('apps');
// // eslint-disable-next-line @typescript-eslint/ban-ts-comment
// // @ts-ignore
// modules.http.config._clients.apps = { baseUri: appService.uri, defaultScopes: appService.scopes };

new FeatureLogger(fusion);

// Todo: should be moved to context module
Expand Down

0 comments on commit eef4909

Please sign in to comment.