From 1728e52e9fa1289c74ac677dbfc5d5359be94332 Mon Sep 17 00:00:00 2001 From: John Livingston Date: Fri, 9 Apr 2021 13:08:20 +0200 Subject: [PATCH] Fix typing. --- client/videowatch-client-plugin.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/videowatch-client-plugin.ts b/client/videowatch-client-plugin.ts index 5b6ffa98..87e83352 100644 --- a/client/videowatch-client-plugin.ts +++ b/client/videowatch-client-plugin.ts @@ -80,7 +80,7 @@ function register ({ registerHook, peertubeHelpers }: RegisterOptions): void { button.onclick = callback if (icon) { // FIXME: remove «as string» when peertube types will be available - const iconUrl = (peertubeHelpers.getBaseStaticRoute() as string) + '/images/' + icon + const iconUrl = peertubeHelpers.getBaseStaticRoute() + '/images/' + icon const iconEl = document.createElement('span') iconEl.classList.add('peertube-plugin-livechat-button-icon') iconEl.setAttribute('style', @@ -198,6 +198,7 @@ function register ({ registerHook, peertubeHelpers }: RegisterOptions): void { container.setAttribute('peertube-plugin-livechat-state', 'initializing') videoWrapper.append(container) + // eslint-disable-next-line @typescript-eslint/no-floating-promises peertubeHelpers.getSettings().then((s: any) => { settings = s const liveOn = !!settings['chat-all-lives']