JS BC - REVERT ME

This commit is contained in:
Thibault Duplessis 2017-08-17 22:42:29 -05:00
parent f4d915b105
commit d33008f46b

View file

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