mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-10-02 08:47:59 +02:00
Do not load profiler on mobile devices
This commit is contained in:
@@ -14,7 +14,7 @@
|
|||||||
ViewBag.Title = String.Format("{0} - NzbDrone", ViewBag.Title);
|
ViewBag.Title = String.Format("{0} - NzbDrone", ViewBag.Title);
|
||||||
}
|
}
|
||||||
<title>@ViewBag.Title</title>
|
<title>@ViewBag.Title</title>
|
||||||
@if (!EnvironmentProvider.IsProduction || ProfilerHelper.Enabled())
|
@if (!Request.Browser.IsMobileDevice && (!EnvironmentProvider.IsProduction || ProfilerHelper.Enabled()))
|
||||||
{
|
{
|
||||||
@MiniProfiler.RenderIncludes()
|
@MiniProfiler.RenderIncludes()
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user