Skip to content

Commit

Permalink
Steam login might not work properly
Browse files Browse the repository at this point in the history
  • Loading branch information
JosefNemec committed Jul 26, 2019
1 parent 5205dc0 commit b68ee6c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions source/Plugins/SteamLibrary/SteamLibrarySettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ private void Login()
view.NavigationChanged += async (s, e) =>
{
var address = view.GetCurrentAddress();
if (address.StartsWith(@"https://steamcommunity.com/id/"))
if (address.Contains(@"steamcommunity.com"))
{
var source = await view.GetPageSourceAsync();
var idMatch = Regex.Match(source, @"g_steamID = ""(\d+)""");
Expand All @@ -248,7 +248,10 @@ private void Login()
userName = userMatch.Groups[1].Value;
}

view.Close();
if (idMatch.Success)
{
view.Close();
}
}
};

Expand Down

0 comments on commit b68ee6c

Please sign in to comment.