mirror of
https://github.com/JonasNilson/idle_master_extended.git
synced 2025-05-11 10:26:55 +02:00
Notification count instead of wallet balance
The class `global_action_link` used to fetch the `header_wallet_balance` is used by other elements, which seem to be problematic.
This commit is contained in:
parent
2169376f89
commit
387cd970df
1 changed files with 3 additions and 10 deletions
|
@ -69,17 +69,10 @@ namespace IdleMasterExtended
|
|||
Logger.Exception(ex, "CookieClient -> IsLogined, for url = " + Settings.Default.myProfileURL);
|
||||
}
|
||||
|
||||
// The 'global_action_link' contains the Steam profile wallet ballance. Every logged in user should have it available.
|
||||
var globalActionLink = document.DocumentNode.SelectSingleNode("//a[@class='global_action_link']");
|
||||
// The 'notification_count' contains the Steam profile notifications count. Every logged in user should have it available.
|
||||
var notificationCount = document.DocumentNode.SelectSingleNode("//span[@class='notification_count']");
|
||||
|
||||
if (globalActionLink is object && !string.IsNullOrEmpty(globalActionLink.Id))
|
||||
{
|
||||
return globalActionLink.Id == "header_wallet_balance";
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
return !string.IsNullOrEmpty(notificationCount.InnerHtml);
|
||||
}
|
||||
|
||||
protected override WebRequest GetWebRequest(Uri address)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue