STEAM GROUP
Steam Client Beta SteamBeta
STEAM GROUP
Steam Client Beta SteamBeta
14,911
IN-GAME
64,629
ONLINE
Founded
January 8, 2013
All Discussions > Bug Reports > Topic Details
Single letter typo in JavaScript breaks listing items to the market
Some people have been having issues listing items in the market over the past few days on the Steam mobile app and desktop browsers. This seems to be happening on browsers that don't have "AppleWebKit" in their user agent string.

Some JavaScript code Valve is using relies on Prototype framework to check the browser the client is using and perform actions based on that.

However, a workaround has been implemented (I think to fix some kind of issue with Scriptaculous library) that sets Prototype to always detect that WebKit is being used. This is done simply by always setting a single variable to true at the beginning of every HTML page.

But there's one typo in this code that breaks the whole thing:
Prototype.Browser.Webkit = true;

Notice the lowercase K.

It should be:
Prototype.Browser.WebKit = true;

This leads to a JavaScript error in the Scriptaculous String.prototype.parseStyle method due to an undefined variable (the workaround I mentioned earlier deletes this variable) when trying to sell items on the community market.
Last edited by TheOddsBodkins; Mar 5 @ 2:22pm
< >
Showing 1-7 of 7 comments
Until this is fixed, anyone affected by this issue on a desktop browser can use this workaround I posted to sell items:
https://steamcommunity.com/discussions/forum/0/592889567447656004/?tscn=1740158386#c592889800496792567
Last edited by TheOddsBodkins; Feb 22 @ 5:08am
This does work for me but i have to constantly keep putting the fix in because it breaks, I think it has to do with how many different items im listing? Not really sure but its better than not being able to list anything.
Last edited by Amber Baal; Feb 22 @ 3:00pm
P337 Feb 24 @ 5:44pm 
Thank you got posting this workaround!

I was able to add this command to a Tampkermoney user-script that runs on the steam community market, and this mostly alleviates the issue for me - but this really needs to be fixed permanently for everyone else who dosnt have additional addons installed.
pizzahut Feb 25 @ 5:36am 
Originally posted by P337:
I was able to add this command to a Tampkermoney user-script that runs on the steam community market, and this mostly alleviates the issue for me
Good idea! https://greasyfork.org/scripts/528037-steam-inventory-sell-fix/code
I guess in a few hours this will be fixed and the script can be disabled then.
Last edited by pizzahut; Mar 5 @ 4:53am
The author of this thread has indicated that this post answers the original topic.
Seems it has been fixed.
Originally posted by pizzahut:
Seems it has been fixed.
Yes, it's fixed.

To fix the issue Valve coders have finally compulated information data flow to data bases, defragmented API calls to shared JavaScript libraries, debugged CSS style sheets to readjust return values in prototype functions accordingly, and typed the letter k while pressing the shift key on the keyboard :trolol:
Last edited by TheOddsBodkins; Mar 5 @ 2:40pm
< >
Showing 1-7 of 7 comments
Per page: 1530 50

All Discussions > Bug Reports > Topic Details
Date Posted: Feb 22 @ 3:21am
Posts: 7