Hotfix palantir
parent
118336e861
commit
fd61d537d2
|
@ -250,7 +250,7 @@ interface Window {
|
||||||
readonly hopscotch: any;
|
readonly hopscotch: any;
|
||||||
LichessSpeech?: LichessSpeech;
|
LichessSpeech?: LichessSpeech;
|
||||||
readonly LichessEditor?: (element: HTMLElement, config: Editor.Config) => LichessEditor;
|
readonly LichessEditor?: (element: HTMLElement, config: Editor.Config) => LichessEditor;
|
||||||
readonly palantir?: {
|
readonly Palantir?: {
|
||||||
palantir(opts: PalantirOpts): Palantir;
|
palantir(opts: PalantirOpts): Palantir;
|
||||||
};
|
};
|
||||||
LichessChat: (element: Element, opts: any) => any;
|
LichessChat: (element: Element, opts: any) => any;
|
||||||
|
|
|
@ -37,7 +37,7 @@ function renderPalantir(ctrl: Ctrl) {
|
||||||
p.loaded = true;
|
p.loaded = true;
|
||||||
lichess.loadScript('javascripts/vendor/peerjs.min.js').then(() => {
|
lichess.loadScript('javascripts/vendor/peerjs.min.js').then(() => {
|
||||||
lichess.loadModule('palantir').then(() => {
|
lichess.loadModule('palantir').then(() => {
|
||||||
p.instance = window.palantir!.palantir({
|
p.instance = window.Palantir!.palantir({
|
||||||
uid: ctrl.data.userId!,
|
uid: ctrl.data.userId!,
|
||||||
redraw: ctrl.redraw,
|
redraw: ctrl.redraw,
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue