mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-19 13:10:13 -07:00
different favicon for debug mode
This commit is contained in:
parent
fcb4f8fd58
commit
0829bb6e41
2 changed files with 9 additions and 1 deletions
|
@ -1,3 +1,4 @@
|
||||||
|
using System;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using NLog;
|
using NLog;
|
||||||
using NzbDrone.Common.Disk;
|
using NzbDrone.Common.Disk;
|
||||||
|
@ -17,7 +18,14 @@ namespace NzbDrone.Api.Frontend.Mappers
|
||||||
|
|
||||||
public override string Map(string resourceUrl)
|
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);
|
return Path.Combine(_appFolderInfo.StartUpFolder, "UI", path);
|
||||||
}
|
}
|
||||||
|
|
BIN
src/UI/Content/Images/favicon-debug.ico
Normal file
BIN
src/UI/Content/Images/favicon-debug.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 17 KiB |
Loading…
Add table
Add a link
Reference in a new issue