Fix formatting
parent
f7bd5e9781
commit
a02718aedd
|
@ -313,9 +313,9 @@ export function renderPvs(ctrl: ParentCtrl): VNode | undefined {
|
|||
const el = vnode.elm as HTMLElement;
|
||||
el.addEventListener('mouseover', (e: MouseEvent) => {
|
||||
instance.setHovering(getElFen(el), getElUci(e));
|
||||
const pvBoard = (e.target as HTMLElement).dataset["board"];
|
||||
const pvBoard = (e.target as HTMLElement).dataset['board'];
|
||||
if (pvBoard) {
|
||||
pvIndex = Number((e.target as HTMLElement).dataset["moveIndex"]);
|
||||
pvIndex = Number((e.target as HTMLElement).dataset['moveIndex']);
|
||||
pvMoves = getElPvMoves(e);
|
||||
const [fen, uci] = pvBoard.split('|');
|
||||
instance.setPvBoard({ fen, uci });
|
||||
|
|
Loading…
Reference in New Issue