Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
ornicar committed Mar 22, 2023
1 parent bed7999 commit 1037710
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/analyse/src/serverSideUnderboard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export default function (element: HTMLElement, ctrl: AnalyseCtrl) {
lichess.pubsub.on('theme.change', () => updateGifLinks(inputFen.value));
lichess.pubsub.on('analysis.comp.toggle', (v: boolean) => {
setTimeout(
() => (v ? $menu.find('[data-panel="computer-analysis"]') : $menu.find('span:eq(1)')).trigger('mousedown'),
() => (v ? $menu.find('.computer-analysis') : $menu.find('span:not(.computer-analysis)').first()).trigger('mousedown'),
50
);
if (v) advChart?.reflow();
Expand Down

0 comments on commit 1037710

Please sign in to comment.