Skip to content

Commit

Permalink
Fetch the variant from the URL
Browse files Browse the repository at this point in the history
  • Loading branch information
programarivm committed Oct 14, 2024
1 parent 759fecb commit cee4096
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions assets/js/iframes/annotations/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ try {
const url = window.location.href.split('/');

annotationsWebSocket.send('/play_rav', {
variant: url[6],
fen: decodeURIComponent(url[7]),
movetext: decodeURIComponent(url[8]),
startPos: url[9]
Expand Down

0 comments on commit cee4096

Please sign in to comment.