Skip to content

Commit

Permalink
fixed a bug where buyorder table could be added infinitely
Browse files Browse the repository at this point in the history
  • Loading branch information
GrueseGehenRaus committed Sep 15, 2024
1 parent f47f027 commit fc58cde
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions extension/src/contentScripts/steam/marketListing.js
Original file line number Diff line number Diff line change
Expand Up @@ -804,15 +804,14 @@ const showAllOrders = (type) => {
</tr>`;
});

document.getElementById(`show_more_${type}`).insertAdjacentHTML(
'afterend',
DOMPurify.sanitize(
`
<table class="market_commodity_orders_table">
${tableRows}
</table>`,
),
document.getElementById(`show_more_${type}`).outerHTML = DOMPurify.sanitize(
`
<table class="market_commodity_orders_table">
${tableRows}
</table>`,
);

document.getElementById('market_commodity_buyreqeusts_table').remove();
});
};

Expand Down

0 comments on commit fc58cde

Please sign in to comment.