Skip to content

Commit 32b9d7c

Browse files
authored
Fix CheckLoopbackException url-based condition (#52)
1 parent 1282e01 commit 32b9d7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SharpWebview/Webview.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ private string ExtractUrlArgument(string jsonArray)
273273
// https://docs.microsoft.com/de-de/windows/win32/sysinfo/operating-system-version
274274
if(Environment.OSVersion.Version.Major < 6 || (Environment.OSVersion.Version.Major == 6 && Environment.OSVersion.Version.Minor < 2))
275275
return true;
276-
else if(url.Contains("localhost") && !url.Contains("127.0.0.1"))
276+
else if(!url.Contains("localhost") && !url.Contains("127.0.0.1"))
277277
return null;
278278

279279
var loopBack = new Loopback();

0 commit comments

Comments
 (0)