Skip to content

Commit

Permalink
Use same music/play.js for round and analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
370417 committed Jan 29, 2023
1 parent 69418d0 commit f95dbaf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 70 deletions.
68 changes: 0 additions & 68 deletions public/javascripts/music/replay.js

This file was deleted.

4 changes: 2 additions & 2 deletions ui/analyse/src/ctrl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,8 @@ export default class AnalyseCtrl {

lichess.pubsub.on('sound_set', (set: string) => {
if (!this.music && set === 'music')
lichess.loadScript('javascripts/music/replay.js').then(() => {
this.music = window.lichessReplayMusic();
lichess.loadScript('javascripts/music/play.js').then(() => {
this.music = lichess.playMusic();
});
if (this.music && set !== 'music') this.music = null;
});
Expand Down

0 comments on commit f95dbaf

Please sign in to comment.