Skip to content

Commit 6cc61d5

Browse files
committed
fixed arrows
1 parent 6bf7c61 commit 6cc61d5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/index.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ app.get('/:fen.jpg', (req, res) => {
116116
const {
117117
debug = 0,
118118
rotate = 0,
119-
arrows = [],
119+
arrows: arrowsList = '',
120120
marks: marksList = '',
121121
bg_color: bgColor = BG_COLOR,
122122
board_size: boardSize = BOARD_SIZE,
@@ -135,6 +135,7 @@ app.get('/:fen.jpg', (req, res) => {
135135
const boardPadding = boardSize / boardCoof
136136
const squareSize = boardPadding * paddingPart
137137
const scale = boardSize / (boardCoof * 15)
138+
const arrows = arrowsList.split(',')
138139
const marks = marksList.split(',')
139140
const whiteBottom = !Number(rotate)
140141

0 commit comments

Comments
 (0)