Revert "JS BC - REVERT ME"

This reverts commit d33008f46b.
This commit is contained in:
Thibault Duplessis 2017-08-18 23:02:51 -05:00
parent dccca0d837
commit 5e022ba376

View file

@ -1,7 +1,7 @@
import { RoundOpts, RoundData } from './interfaces';
import { RoundApi, RoundMain } from './main';
import { ChatCtrl } from 'chat';
import { tourStandingCtrl, TourStandingCtrl } from './tourStanding';
import { tourStandingCtrl, TourStandingCtrl, TourPlayer } from './tourStanding';
const li = window.lichess;
@ -41,9 +41,9 @@ export default function(opts: RoundOpts, element: HTMLElement): void {
}
});
},
tourStanding(s: any) {
tourStanding(s: TourPlayer[]) {
if (opts.chat && opts.chat.plugin && chat) {
(opts.chat.plugin as TourStandingCtrl).set(s.top ? s.top : s);
(opts.chat.plugin as TourStandingCtrl).set(s);
chat.redraw();
}
}