Hotfix palantir

palantir-hotfix
Benedikt Werner 2021-09-06 20:54:10 +02:00
parent 118336e861
commit fd61d537d2
No known key found for this signature in database
GPG Key ID: 1DBFF0F8E9E121EB
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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,
}); });