From fd61d537d2336702992f115b48a72492db2271f5 Mon Sep 17 00:00:00 2001 From: Benedikt Werner <1benediktwerner@gmail.com> Date: Mon, 6 Sep 2021 20:54:10 +0200 Subject: [PATCH] Hotfix palantir --- ui/@types/lichess/index.d.ts | 2 +- ui/chat/src/view.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/@types/lichess/index.d.ts b/ui/@types/lichess/index.d.ts index b5dbb479e0..3e8a7b971f 100644 --- a/ui/@types/lichess/index.d.ts +++ b/ui/@types/lichess/index.d.ts @@ -250,7 +250,7 @@ interface Window { readonly hopscotch: any; LichessSpeech?: LichessSpeech; readonly LichessEditor?: (element: HTMLElement, config: Editor.Config) => LichessEditor; - readonly palantir?: { + readonly Palantir?: { palantir(opts: PalantirOpts): Palantir; }; LichessChat: (element: Element, opts: any) => any; diff --git a/ui/chat/src/view.ts b/ui/chat/src/view.ts index ef7fbfc6f5..712ccd24b3 100644 --- a/ui/chat/src/view.ts +++ b/ui/chat/src/view.ts @@ -37,7 +37,7 @@ function renderPalantir(ctrl: Ctrl) { p.loaded = true; lichess.loadScript('javascripts/vendor/peerjs.min.js').then(() => { lichess.loadModule('palantir').then(() => { - p.instance = window.palantir!.palantir({ + p.instance = window.Palantir!.palantir({ uid: ctrl.data.userId!, redraw: ctrl.redraw, });