Commit 3713fb1
authored
Fix cannot use resource from hero inventory part 2 (#155)
Refactor the `IsInventoryPage` method in `InventoryParser.cs` to change the logic for selecting `<a>` nodes within the `heroDiv` element.
Replaced the `GetAttributeValue` check for `data-tab` with a `HasClass` check for the `tabItem` class.
This improves the clarity and maintainability of the node selection logic.1 parent 53acb07 commit 3713fb1
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
0 commit comments