Browse files

Do not load profiler on mobile devices

  • Loading branch information...
1 parent fef926a commit 08d811f7c3bc46ce425d32a0d7ce5f21b61aafc7 @markus101 markus101 committed Sep 30, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 NzbDrone.Web/Views/Shared/_Layout.cshtml
View
2 NzbDrone.Web/Views/Shared/_Layout.cshtml
@@ -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()
}

0 comments on commit 08d811f

Please sign in to comment.