Skip to content

Commit

Permalink
removed float bar skeletons from charms pages
Browse files Browse the repository at this point in the history
  • Loading branch information
gergelyszabo94 committed Dec 4, 2024
1 parent 1e4d848 commit c942145
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion extension/src/contentScripts/steam/marketListing.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ import capsuleNamesWithNoCapsuleInName from 'utils/static/capsuleNamesWithNoCaps
import { isDopplerInName, reloadPageOnExtensionUpdate } from 'utils/simpleUtils';
import { overrideCreatePriceHistoryGraph } from 'utils/steamOverriding';
import { listenToAcceptTrade } from 'utils/tradeOffers';
import itemTypes from 'utils/static/itemTypes';

const inBrowserInspectButtonPopupLink = `
<a class="popup_menu_item" id="inbrowser_inspect" href="https://swap.gg/screenshot" target="_blank">
Expand Down Expand Up @@ -488,8 +489,9 @@ const addFloatBarSkeletons = () => {
const listingsSection = document.getElementById('searchResultsRows');

// so it does not throw any errors when it can't find it on commodity items
if (listingsSection !== null) {
if (listingsSection !== null && !fullName.includes(itemTypes.charm.name)) {
const listingNameBlocks = listingsSection.querySelectorAll('.market_listing_item_name_block');

if (listingNameBlocks !== null && itemWithInspectLink) {
listingNameBlocks.forEach((listingNameBlock) => {
if (listingNameBlock.getAttribute('data-floatBar-added') === null
Expand Down

0 comments on commit c942145

Please sign in to comment.