Skip to content

Commit

Permalink
Merge pull request #106 from csgofloat/fix/souvenir-packages
Browse files Browse the repository at this point in the history
Prevents Loading Item Row Injectors for Souvenir Packages
  • Loading branch information
Step7750 authored Oct 5, 2022
2 parents baf8f03 + 8c604bb commit 195280a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/lib/components/market/item_row_wrapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@ export class ItemRowWrapper extends FloatElement {
async connectedCallback() {
super.connectedCallback();

if (!this.inspectLink) {
return;
}

// Only add if they don't have Steam Inventory Helper
if (!$J(this).parent().parent().find('.sih-inspect-magnifier').length) {
inlineEasyInspect(
Expand Down Expand Up @@ -118,6 +122,10 @@ export class ItemRowWrapper extends FloatElement {
}

render() {
if (!this.inspectLink) {
return html``;
}

if (this.itemInfo) {
return html`
<div>
Expand Down
4 changes: 4 additions & 0 deletions src/lib/components/market/skin_viewer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ export class SkinViewer extends FloatElement {
}

protected render(): HTMLTemplateResult {
if (!this.inspectLink) {
return html``;
}

return html`
<div class="btn-container">
<csgofloat-steam-button .text="${this.loadingIfApplicable("3D", Showing.MODEL)}"
Expand Down

0 comments on commit 195280a

Please sign in to comment.