Skip to content

Commit

Permalink
Don't set arrow style straight away
Browse files Browse the repository at this point in the history
  • Loading branch information
Hakorr committed Jul 7, 2024
1 parent 8279df6 commit 83e78f6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions acas.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -439,13 +439,13 @@ const boardUtils = {

// create player move arrow element
const arrowElem = BoardDrawer.createShape('arrow', [from, to],
{ style: arrowStyle }
//{ style: arrowStyle }
);

// create opponent move arrow element
if(opponentMoveGuessExists && showOpponentMoveGuess) {
opponentArrowElem = BoardDrawer.createShape('arrow', [opponentFrom, opponentTo],
{ style: arrowStyles.opponent }
//{ style: arrowStyles.opponent }
);

const squareListener = BoardDrawer.addSquareListener(from, type => {
Expand Down
4 changes: 2 additions & 2 deletions assets/js/acas-backend-instance.js
Original file line number Diff line number Diff line change
Expand Up @@ -207,13 +207,13 @@ class BackendInstance {

// Create player move arrow element
const arrowElem = this.BoardDrawer.createShape('arrow', [from, to],
{ style: arrowStyle }
//{ style: arrowStyle }
);

// Create opponent move arrow element
if(opponentMoveGuessExists && showOpponentMoveGuess) {
opponentArrowElem = this.BoardDrawer.createShape('arrow', [opponentFrom, opponentTo],
{ style: this.arrowStyles.opponent }
//{ style: this.arrowStyles.opponent }
);

const squareListener = this.BoardDrawer.addSquareListener(from, type => {
Expand Down

0 comments on commit 83e78f6

Please sign in to comment.