Skip to content

Conversation

@GODrums
Copy link
Collaborator

@GODrums GODrums commented Jul 15, 2025

Fixes #334 by limiting the injection of SelectedItemInfo to context DOM parents with the app730 class.

@GODrums GODrums requested a review from Step7750 July 15, 2025 15:35
@GODrums GODrums self-assigned this Jul 15, 2025
Copilot AI review requested due to automatic review settings July 15, 2025 15:35
@GODrums GODrums added the bug label Jul 15, 2025
@GODrums GODrums linked an issue Jul 15, 2025 that may be closed by this pull request
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Fixes injection of SelectedItemInfo so it only runs for appid 730 pages by requiring the .app730 class on the item info containers.

  • Updated the @InjectAfter selectors to include the .app730 class on both item info elements.
Comments suppressed due to low confidence (1)

src/lib/components/inventory/selected_item_info.ts:34

  • Consider adding unit or integration tests to verify that SelectedItemInfo injection only occurs when the parent has the .app730 class and is skipped otherwise.
@InjectAfter('div.app730#iteminfo0_content .item_desc_description div.item_desc_game_info', InjectionMode.CONTINUOUS)

@GODrums GODrums merged commit 388e997 into master Jul 17, 2025
2 checks passed
@GODrums GODrums deleted the 334-list-on-csfloat-button-shown-for-dota-2tf2 branch July 17, 2025 19:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

List on CSFloat Button Shown for Dota 2/TF2

3 participants