1
0
mirror of https://github.com/Radarr/Radarr.git synced 2026-04-17 21:26:22 -04:00

Do not load profiler on mobile devices

This commit is contained in:
Mark McDowall
2012-09-30 16:20:35 -07:00
parent fef926a417
commit 08d811f7c3

View File

@@ -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()
}