remove settings

This commit is contained in:
Tommy Parnell
2015-03-11 23:07:51 -04:00
parent 428f2f813c
commit 6dd00cbca7
2 changed files with 0 additions and 26 deletions

View File

@@ -240,7 +240,6 @@
<ItemGroup>
<Compile Include="Modules\Index.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Settings.cs" />
<Compile Include="Startup.cs" />
<Compile Include="AppStart\Bootstrap.cs" />
</ItemGroup>

View File

@@ -1,25 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace AboutMe.Web
{
public static class Settings
{
public static IEnumerable<string> Phones = new[] {"iphone","ppc",
"windows ce","blackberry",
"opera mini","mobile","palm",
"portable","opera mobi", "android" };
public static bool IsMobile(string userAgent)
{
if (string.IsNullOrWhiteSpace(userAgent))
{
return false;
}
var agent = userAgent.ToLower();
return Phones.Any(x => agent.Contains(x));
}
}
}