mirror of
https://github.com/Sonarr/Sonarr
synced 2024-12-27 02:07:41 +00:00
Do not load profiler on mobile devices
This commit is contained in:
parent
fef926a417
commit
08d811f7c3
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue