mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-16 14:03:03 +03:00
Use IsHostingContent instead of explicitly checking ContentRoot
This commit is contained in:
@@ -268,7 +268,7 @@ namespace Jellyfin.Server
|
||||
.UseStartup<Startup>();
|
||||
|
||||
// Set the root directory for static content, if one exists
|
||||
if (!string.IsNullOrEmpty(appHost.ContentRoot))
|
||||
if (appHost.IsHostingContent)
|
||||
{
|
||||
webhostBuilder.UseContentRoot(appHost.ContentRoot);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user