From 08d811f7c3bc46ce425d32a0d7ce5f21b61aafc7 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Sun, 30 Sep 2012 16:20:35 -0700 Subject: [PATCH] Do not load profiler on mobile devices --- NzbDrone.Web/Views/Shared/_Layout.cshtml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NzbDrone.Web/Views/Shared/_Layout.cshtml b/NzbDrone.Web/Views/Shared/_Layout.cshtml index 7d70f79f4..968757770 100644 --- a/NzbDrone.Web/Views/Shared/_Layout.cshtml +++ b/NzbDrone.Web/Views/Shared/_Layout.cshtml @@ -14,7 +14,7 @@ ViewBag.Title = String.Format("{0} - NzbDrone", ViewBag.Title); } @ViewBag.Title - @if (!EnvironmentProvider.IsProduction || ProfilerHelper.Enabled()) + @if (!Request.Browser.IsMobileDevice && (!EnvironmentProvider.IsProduction || ProfilerHelper.Enabled())) { @MiniProfiler.RenderIncludes() }