Skip to content

Commit

Permalink
Added missing silver and gold award for Super User
Browse files Browse the repository at this point in the history
  • Loading branch information
msujaws committed May 18, 2013
1 parent acebde6 commit 1268293
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lib/main.js
Expand Up @@ -357,6 +357,8 @@ const ao = require("achievement-overlay"),
ss.aboutsVisited = {};
if (!ss.aboutsVisitedCount)
ss.aboutsVisitedCount = 0;
if (!ss.aboutConfigVisits)
ss.aboutConfigVisits = 0;
if (!ss.downloadsRemoved)
ss.downloadsRemoved = 0;
if (!ss.bookmarksAdded)
Expand Down Expand Up @@ -690,6 +692,14 @@ const ao = require("achievement-overlay"),
}
}

if (tab.url.toLowerCase() == "about:config") {
ss.aboutConfigVisits++;
onObservation(cheevos.configOpened, true, "bronze");
onObservation(cheevos.configOpened, true, "silver");
if (ss.aboutConfigVisits > 5)
onObservation(cheevos.configOpened, true, "gold");
}

if (tab.url.toLowerCase().indexOf("about:") == 0 &&
tab.url.toLowerCase() != "about:home" &&
tab.url.toLowerCase() != "about:blank" &&
Expand Down

0 comments on commit 1268293

Please sign in to comment.