From 42620dc5a5de0695b057f644a1bc7f565e3d51c1 Mon Sep 17 00:00:00 2001
From: William Billingsley <wbilling@une.edu.au>
Date: Tue, 11 Sep 2018 15:23:41 +1000
Subject: [PATCH] Fix incompatibility between Timer in node and browser

---
 src/gameConfig.ts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gameConfig.ts b/src/gameConfig.ts
index 30380fb..2993c41 100644
--- a/src/gameConfig.ts
+++ b/src/gameConfig.ts
@@ -81,7 +81,7 @@ class ConfigView extends Vue {
             clearInterval(this.intervalId)
             this.config.started = false
         } else {
-            this.intervalId = setInterval(() => {
+            this.intervalId = window.setInterval(() => {
                 let l = getLife()
                 if (l) l.stepGame()
                 render()
-- 
GitLab