Skip to content

Commit

Permalink
partial fix for gif exports
Browse files Browse the repository at this point in the history
  • Loading branch information
schlawg committed May 8, 2024
1 parent f247e65 commit 464d2c6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions ui/analyse/src/serverSideUnderboard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ export default function (element: HTMLElement, ctrl: AnalyseCtrl) {
color: ctrl.bottomColor(),
lastMove: ctrl.node.uci,
variant: ctrl.data.game.variant.key,
theme: ds.boardTheme,
theme: ds.board,
piece: ds.pieceSet,
});
gameGifLink.href = xhrUrl(ds.assetUrl + `/game/export/gif/${ctrl.bottomColor()}/${data.game.id}.gif`, {
theme: ds.boardTheme,
theme: ds.board,
piece: ds.pieceSet,
});
};
Expand Down
4 changes: 2 additions & 2 deletions ui/analyse/src/study/studyShare.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ export function view(ctrl: StudyShare): VNode {
color: ctrl.bottomColor(),
lastMove: ctrl.currentNode().uci,
variant: ctrl.variantKey,
theme: document.body.dataset.boardTheme,
theme: document.body.dataset.board,
piece: document.body.dataset.pieceSet,
}),
download: true,
Expand All @@ -174,7 +174,7 @@ export function view(ctrl: StudyShare): VNode {
attrs: {
...dataIcon(licon.Download),
href: xhrUrl(`/study/${studyId}/${chapter.id}.gif`, {
theme: document.body.dataset.boardTheme,
theme: document.body.dataset.board,
piece: document.body.dataset.pieceSet,
}),
download: true,
Expand Down

0 comments on commit 464d2c6

Please sign in to comment.