From abfe42b7c173bc645f715a385473535f04c8731f Mon Sep 17 00:00:00 2001 From: Glax Date: Wed, 28 Feb 2024 02:25:46 +0100 Subject: [PATCH] Reset UserAgent when Empty --- Tranga/TrangaSettings.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tranga/TrangaSettings.cs b/Tranga/TrangaSettings.cs index 9899e67..534e357 100644 --- a/Tranga/TrangaSettings.cs +++ b/Tranga/TrangaSettings.cs @@ -131,7 +131,7 @@ public class TrangaSettings public void UpdateUserAgent(string customUserAgent) { - this.userAgent = customUserAgent; + this.userAgent = customUserAgent.Length < 1 ? DefaultUserAgent : customUserAgent; ExportSettings(); }