From 0829bb6e4133ce2bfe5fe26b1b2d8ac3bd7f07df Mon Sep 17 00:00:00 2001 From: Keivan Beigi Date: Sat, 7 Feb 2015 09:58:22 -0800 Subject: [PATCH] different favicon for debug mode --- .../Frontend/Mappers/FaviconMapper.cs | 10 +++++++++- src/UI/Content/Images/favicon-debug.ico | Bin 0 -> 16958 bytes 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 src/UI/Content/Images/favicon-debug.ico diff --git a/src/NzbDrone.Api/Frontend/Mappers/FaviconMapper.cs b/src/NzbDrone.Api/Frontend/Mappers/FaviconMapper.cs index e82fcd898..2947de2e8 100644 --- a/src/NzbDrone.Api/Frontend/Mappers/FaviconMapper.cs +++ b/src/NzbDrone.Api/Frontend/Mappers/FaviconMapper.cs @@ -1,3 +1,4 @@ +using System; using System.IO; using NLog; using NzbDrone.Common.Disk; @@ -17,7 +18,14 @@ public FaviconMapper(IAppFolderInfo appFolderInfo, IDiskProvider diskProvider, L public override string Map(string resourceUrl) { - var path = Path.Combine("Content", "Images", "favicon.ico"); + var fileName = "favicon.ico"; + + if (BuildInfo.IsDebug) + { + fileName = "favicon-debug.ico"; + } + + var path = Path.Combine("Content", "Images", fileName); return Path.Combine(_appFolderInfo.StartUpFolder, "UI", path); } diff --git a/src/UI/Content/Images/favicon-debug.ico b/src/UI/Content/Images/favicon-debug.ico new file mode 100644 index 0000000000000000000000000000000000000000..db19f38e42729fed01bdcfec1901af738e0d6b9b GIT binary patch literal 16958 zcmd6tU5H&*6~|8~l0LNwmZplDNmEH18yJ~<5Iaf6Nu3&PoYDZV;VD3S#fp8h7xSXVMr`%*zJ4R=xET54c~v@rJv8{d!yMfX_E=+2UhP zGJS0^zi#9Q3-km#_NuQ--FaM(VSO-$M+U>j8FYhF$l+ z^3{XhAIQfy>ez%{5ChhKw#k@z{F%GRrzj3X8{GD>jcI$_FC3GH4*iY{$L6il6?&vVqaHqWI~b zl?(C7hLeBs<<|GFnin7P7j<5G&2vBU__fBzzPJ5t8SIQ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