IW4M-Admin/WebfrontCore/Extensions/WebfrontExtensions.cs

11 lines
428 B
C#
Raw Normal View History

using SharedLibraryCore.Configuration;
namespace WebfrontCore.Extensions
{
public static class WebfrontExtensions
{
public static bool ShouldUseFallbackBranding(this ApplicationConfiguration appConfig) =>
string.IsNullOrWhiteSpace(appConfig?.CommunityInformation?.Name) ||
appConfig.CommunityInformation.Name.Contains("IW4MAdmin") || !appConfig.CommunityInformation.IsEnabled;
}
}