Restore market_fee_app property to CEconItem for Steam Community items

This commit is contained in:
Alexander Corn 2016-12-15 00:53:26 -05:00
parent d91e74d02a
commit 489c0441a5

View File

@ -60,6 +60,12 @@ function CEconItem(item, description, contextID) {
});
}
// Restore market_fee_app, if applicable
var match;
if (this.appid == 753 && this.contextid == 6 && this.market_hash_name && (match = this.market_hash_name.match(/^(\d+)\-/))) {
this.market_fee_app = parseInt(match[1], 10);
}
if (this.actions === "") {
this.actions = [];
}