From 54909304287f3c04dcfb39660be8ead57dc95440 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 24 May 2023 16:48:54 +0200 Subject: Remove suppressImplicitAnyIndexErrors It's deprecated by TS --- client/src/root-helpers/plugins-manager.ts | 4 ++-- client/src/root-helpers/video.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'client/src/root-helpers') diff --git a/client/src/root-helpers/plugins-manager.ts b/client/src/root-helpers/plugins-manager.ts index f99c7598d..fd7b5233b 100644 --- a/client/src/root-helpers/plugins-manager.ts +++ b/client/src/root-helpers/plugins-manager.ts @@ -317,7 +317,7 @@ async function dynamicImport (url: string) { const script = document.createElement('script') const destructor = () => { - delete window[vector] + delete window[vector as any] script.onerror = null script.onload = null script.remove() @@ -333,7 +333,7 @@ async function dynamicImport (url: string) { destructor() } script.onload = () => { - resolve(window[vector]) + resolve(window[vector as any]) destructor() } const loader = `import * as m from "${url}"; window.${vector} = m;` // export Module diff --git a/client/src/root-helpers/video.ts b/client/src/root-helpers/video.ts index 01feddbdc..9022b908b 100644 --- a/client/src/root-helpers/video.ts +++ b/client/src/root-helpers/video.ts @@ -21,7 +21,7 @@ function buildVideoOrPlaylistEmbed (options: { const wrapper = document.createElement('div') wrapper.style.position = 'relative' - wrapper.style['padding-top'] = '56.25%' + wrapper.style.paddingTop = '56.25%' iframe.style.position = 'absolute' iframe.style.inset = '0' -- cgit v1.2.3