aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--draughts/public/javascripts/color.js2
-rw-r--r--draughts/public/javascripts/game.js9
2 files changed, 1 insertions, 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")