From c3b651bc2baf4240ec4bc393b957529b450684da Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Wed, 19 Jan 2022 11:59:18 +0100 Subject: Fix stupid bug induced by low IQ --- draughts/public/javascripts/color.js | 2 +- draughts/public/javascripts/game.js | 9 --------- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/draughts/public/javascripts/color.js b/draughts/public/javascripts/color.js index 0449161..32fea21 100644 --- a/draughts/public/javascripts/color.js +++ b/draughts/public/javascripts/color.js @@ -2,4 +2,4 @@ (function (exports) { exports.BLUE = "b" exports.RED = "r" -})(typeof(exports) == "undefined" ? (this.Color == {}) : exports) +})(typeof(exports) == "undefined" ? (this.Color = {}) : exports) diff --git a/draughts/public/javascripts/game.js b/draughts/public/javascripts/game.js index 741a0ce..aac6531 100644 --- a/draughts/public/javascripts/game.js +++ b/draughts/public/javascripts/game.js @@ -1,12 +1,3 @@ -/* This is basically the enumeration we have in the `public/javascripts/color.js' file, except I - * cannot for the life of me get it to import properly, so I suppose we are doing it this way for - * now. - */ -const Color = { - BLUE: "b", - RED: "r" -} - /* Initialize a new web socket to connect to the server */ const ws = new WebSocket("ws://localhost:3000") -- cgit v1.2.3