Skip to content

Commit

Permalink
Do not load profiler on mobile devices
Browse files Browse the repository at this point in the history
  • Loading branch information
markus101 committed Sep 30, 2012
1 parent fef926a commit 08d811f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion NzbDrone.Web/Views/Shared/_Layout.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand Down

0 comments on commit 08d811f

Please sign in to comment.