Skip to content

Commit

Permalink
esbuild fix
Browse files Browse the repository at this point in the history
  • Loading branch information
schlawg committed Nov 12, 2022
1 parent d5e8b21 commit cb5b9af
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion ui/chart/src/acpl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,4 +176,5 @@ const toBlurArray = (player: Player) => (player.blurs && player.blurs.bits ? pla

export default acpl;

(window as any).LichessChartGame = { acpl }; // esbuild
if (!window.LichessChartGame) (window as any).LichessChartGame = [];
(window as any).LichessChartGame.acpl = acpl; // esbuild
5 changes: 3 additions & 2 deletions ui/chart/src/movetime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,7 @@ const formatClock = (centis: number) => {
return result;
};

(window as any).LichessChartGame.movetime = movetime;

export default movetime;

if (!window.LichessChartGame) (window as any).LichessChartGame = [];
(window as any).LichessChartGame.movetime = movetime;

0 comments on commit cb5b9af

Please sign in to comment.