Skip to content

Commit

Permalink
Revert "Fix using Steam's uncompleted translations"
Browse files Browse the repository at this point in the history
The "solution" was just causing achievement progress for games
without leaderboards for users with a non-english language to not
be detected at all.

See IsThereAnyDeal@082acfc#commitcomment-38668969

This reverts commit 082acfc.
  • Loading branch information
MxtOUT committed Apr 22, 2020
1 parent 9f03ad9 commit 169fcb1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions js/content/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -1109,6 +1109,11 @@ let Stats = (function() {

achNode.style.whiteSpace = "nowrap";

if (!achNode.querySelector("img")) {
// The size of the achievement bars for games without leaderboards/other stats is fine, return
return achNode.innerHTML;
}

let stats = achNode.innerHTML.match(/(\d+) of (\d+) \((\d{1,3})%\)/);

// 1 full match, 3 group matches
Expand Down

0 comments on commit 169fcb1

Please sign in to comment.