diff options
| author | Thomas Voss <thomasvoss@live.com> | 2022-01-19 11:59:18 +0100 | 
|---|---|---|
| committer | Thomas Voss <thomasvoss@live.com> | 2022-01-19 12:13:42 +0100 | 
| commit | c3b651bc2baf4240ec4bc393b957529b450684da (patch) | |
| tree | f726908eb421a641e12361968b09088c856136e0 /draughts | |
| parent | 2e1d8be55aafa91d7559499ad9ca315dac408ae2 (diff) | |
Fix stupid bug induced by low IQmain
Diffstat (limited to 'draughts')
| -rw-r--r-- | draughts/public/javascripts/color.js | 2 | ||||
| -rw-r--r-- | draughts/public/javascripts/game.js | 9 | 
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")  |