Skip to content

Commit 7a3bdcc

Browse files
committed
.
1 parent 1cffa31 commit 7a3bdcc

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

DeviceDetector.NET.Web/Controllers/HomeController.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,20 @@
22
using DeviceDetectorNET.Parser;
33
using Microsoft.AspNetCore.Mvc;
44
using System;
5-
using System.Linq;
65

76
namespace DeviceDetectorNET.Web.Controllers
87
{
98
public class HomeController : Controller
109
{
1110
public IActionResult Index()
1211
{
13-
DeviceDetectorNET.DeviceDetector.SetVersionTruncation(VersionTruncation.VERSION_TRUNCATION_NONE);
12+
DeviceDetector.SetVersionTruncation(VersionTruncation.VERSION_TRUNCATION_NONE);
1413

1514
var userAgent = Request.Headers["User-Agent"];
1615

1716
//var headers = Request.Headers.ToDictionary(a => a.Key, a => a.Value);
1817

19-
var result = DeviceDetectorNET.DeviceDetector.GetInfoFromUserAgent(userAgent);
18+
var result = DeviceDetector.GetInfoFromUserAgent(userAgent);
2019

2120
var output = result.Success ? result.ToString().Replace(Environment.NewLine, "<br />") : "Unknown";
2221

0 commit comments

Comments
 (0)