Commits: 1

Fix countdown loop

The URL for fathom analytics script was wrong, so it wouldn't load. Any attempt to send custom events was breaking the app.

Now the URL is updated. Also, in case the script is not loaded, the app should continue running, just without registering events.

index 9f3e888..aa87927 100644
--- a/src/index.coffee
+++ b/src/index.coffee
@@ -37,7 +37,7 @@ outcomes_db
=        document.body.requestFullscreen? {}
=
=    game.ports.goalTracking.subscribe ([goal, value]) =>
-        if process.env.NODE_ENV is "production"
+        if process.env.NODE_ENV is "production" and fathom?
=            fathom.trackGoal goal, value
=        else
=            console.debug "Tracking goals disabled in development environment."
index 4d64c3c..34d9a1b 100644
--- a/src/index.html
+++ b/src/index.html
@@ -25,9 +25,7 @@
=
=    <link rel="shortcut icon" href="./icon-large.svg" type="image/svg+xml" />
=
-
-    <script src="https://hookworm.hornbook.io/script.js" data-site="XRUGIRXN" defer>
-    </script>
+    <script src="https://cdn.usefathom.com/script.js" data-site="XRUGIRXN" defer></script>
=
=    <script type="module" src="./index.coffee" defer>
=    </script>