STEAM 组
Steam Client Beta SteamBeta
STEAM 组
Steam Client Beta SteamBeta
8,154
游戏中
56,585
在线
成立于
2013 年 1 月 8 日
所有讨论 > Bug Reports > 主题详情
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.
最后由 TheOddsBodkins 编辑于; 3 月 5 日 下午 2:22
< >
正在显示第 1 - 7 条,共 7 条留言
TheOddsBodkins 2 月 22 日 上午 3:48 
Until this is fixed, anyone affected by this issue on a desktop browser can use this workaround I posted to sell items:
https://psteamcommunity.yuanyoumao.com/discussions/forum/0/592889567447656004/?tscn=1740158386#c592889800496792567
最后由 TheOddsBodkins 编辑于; 2 月 22 日 上午 5:08
Amber Baal 2 月 22 日 下午 3:00 
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.
最后由 Amber Baal 编辑于; 2 月 22 日 下午 3:00
P337 2 月 24 日 下午 5:44 
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 2 月 25 日 上午 5:36 
引用自 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.
最后由 pizzahut 编辑于; 3 月 5 日 上午 4:53
该讨论串的作者已表示此帖子解答了原先的主题。
pizzahut 3 月 5 日 下午 1:08 
Seems it has been fixed.
引用自 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:
最后由 TheOddsBodkins 编辑于; 3 月 5 日 下午 2:40
< >
正在显示第 1 - 7 条,共 7 条留言
每页显示数: 1530 50

所有讨论 > Bug Reports > 主题详情
发帖日期: 2 月 22 日 上午 3:21
回复数: 7