fix beta header shown on compat list when there's no current beta
This commit is contained in:
parent
4cd9eda159
commit
aeca48c419
|
@ -1,4 +1,8 @@
|
|||
# Release notes
|
||||
## Upcoming
|
||||
* For the web UI:
|
||||
* Fixed compatibility list showing beta header when there's no beta in progress.
|
||||
|
||||
## 2.8.2
|
||||
* Fixed game crash in MacOS since SMAPI 2.8.
|
||||
|
||||
|
|
|
@ -52,6 +52,8 @@ namespace StardewModdingAPI.Toolkit.Framework.Clients.Wiki
|
|||
// fetch game versions
|
||||
string stableVersion = doc.DocumentNode.SelectSingleNode("div[@class='game-stable-version']")?.InnerText;
|
||||
string betaVersion = doc.DocumentNode.SelectSingleNode("div[@class='game-beta-version']")?.InnerText;
|
||||
if (betaVersion == stableVersion)
|
||||
betaVersion = null;
|
||||
|
||||
// find mod entries
|
||||
HtmlNodeCollection modNodes = doc.DocumentNode.SelectNodes("table[@id='mod-list']//tr[@class='mod']");
|
||||
|
|
Loading…
Reference in New Issue