We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db2d0d7 commit 2d53c92Copy full SHA for 2d53c92
1 file changed
src/ActiveLogin.Authentication.BankId.UAParser/UAParserDeviceDetector.cs
@@ -14,10 +14,10 @@ namespace ActiveLogin.Authentication.BankId.UaParser;
14
/// </remarks>
15
public class UAParserDeviceDetector : IBankIdSupportedDeviceDetectorByUserAgent
16
{
17
+ private static readonly Parser parser = Parser.GetDefault();
18
public BankIdSupportedDevice Detect(string userAgent)
19
- var uaParser = Parser.GetDefault();
20
- var clientInfo = uaParser.Parse(userAgent);
+ var clientInfo = parser.Parse(userAgent);
21
22
var deviceType = GetDeviceType(clientInfo);
23
var deviceOs = GetDeviceOs(clientInfo);
0 commit comments