Fix formatting

pull/8892/head
Diogo Jerónimo 2021-05-14 08:29:39 +01:00
parent f7bd5e9781
commit a02718aedd
1 changed files with 2 additions and 2 deletions

View File

@ -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 });