Skip to content

Commit

Permalink
Link popup items to the new item market.
Browse files Browse the repository at this point in the history
  • Loading branch information
DeKleineKobini committed Dec 9, 2024
1 parent bf9292a commit 2d76275
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion extension/changelog.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
{ "message": "Fix drug details not showing on the item page.", "contributor": "DeKleineKobini" },
{ "message": "Bugs & Issues forum warning wasn't showing up in all places anymore.", "contributor": "DeKleineKobini" },
{ "message": "Link market icons to the new item market.", "contributor": "DeKleineKobini" },
{ "message": "Link market icons for missing sets to the new item market.", "contributor": "DeKleineKobini" }
{ "message": "Link market icons for missing sets to the new item market.", "contributor": "DeKleineKobini" },
{ "message": "Link popup items to the new item market.", "contributor": "DeKleineKobini" }
],
"changes": [
{
Expand Down
3 changes: 2 additions & 1 deletion extension/pages/popup/popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -743,7 +743,8 @@ async function setupMarketSearch() {
viewItem.find(".circulation").textContent = formatNumber(item.circulation);
viewItem.find(".value").textContent = `$${formatNumber(item.market_value)}`;
viewItem.find(".name").textContent = item.name;
viewItem.find(".name").href = `https://www.torn.com/imarket.php#/p=shop&step=shop&type=&searchname=${item.name}`;
viewItem.find(".name").href =
`https://www.torn.com/page.php?sid=ItemMarket#/market/view=search&itemID=${id}&itemName=${item.name}&itemType=${item.type}`;
viewItem.find(".image").src = item.image;

viewItem.classList.remove("tt-hidden");
Expand Down

0 comments on commit 2d76275

Please sign in to comment.