mirror of
https://github.com/osmarks/website
synced 2025-09-02 10:48:03 +00:00
Patch achievement system
This commit is contained in:
@@ -29,12 +29,12 @@ description: It is pitch black (if you ignore all of the lighting). You are like
|
||||
<script>
|
||||
function unlockAchievement(name) {
|
||||
if ("points" in window) {
|
||||
points.unlockAchievement(name)
|
||||
points.then(points => points.unlockAchievement(name))
|
||||
}
|
||||
}
|
||||
function updateMetric(name, fn, def) {
|
||||
if ("points" in window) {
|
||||
points.updateMetric(name, fn, def)
|
||||
points.then(points => points.updateMetric(name, fn, def))
|
||||
}
|
||||
}
|
||||
var state="start"; // SPOILERS SPOILERS OH GOD SPOILERS OH GOD SPOILERS
|
||||
|
Reference in New Issue
Block a user