Moving to using IOHelper.IsHosted

This commit is contained in:
Aaron Powell
2019-02-14 13:44:24 +11:00
parent 88a2878cf2
commit c50daf87a5

View File

@@ -280,7 +280,7 @@ namespace Umbraco.Web.Runtime
// When using a non-web runtime and this component is loaded ClientDependency explodes because it'll
// want to access HttpContext.Current, which doesn't exist
if (HttpContext.Current != null)
if (IOHelper.IsHosted)
ClientDependencySettings.Instance.MvcRendererCollection.Add(renderer);
}
}