mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-10-02 00:34:37 +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);
|
||||
}
|
||||
<title>@ViewBag.Title</title>
|
||||
@if (!EnvironmentProvider.IsProduction || ProfilerHelper.Enabled())
|
||||
@if (!Request.Browser.IsMobileDevice && (!EnvironmentProvider.IsProduction || ProfilerHelper.Enabled()))
|
||||
{
|
||||
@MiniProfiler.RenderIncludes()
|
||||
}
|
||||
|
Reference in New Issue
Block a user