diff options
author | Chocobozzz <me@florianbigard.com> | 2023-05-24 16:48:54 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2023-05-24 16:56:05 +0200 |
commit | 54909304287f3c04dcfb39660be8ead57dc95440 (patch) | |
tree | 478f1b913f3bd4c3bbaa17525f0114c5b0a8689d /client/src/root-helpers | |
parent | d0fbc9fd0a29c37f3ff9b99030351e90b276fe7d (diff) | |
download | PeerTube-54909304287f3c04dcfb39660be8ead57dc95440.tar.gz PeerTube-54909304287f3c04dcfb39660be8ead57dc95440.tar.zst PeerTube-54909304287f3c04dcfb39660be8ead57dc95440.zip |
Remove suppressImplicitAnyIndexErrors
It's deprecated by TS
Diffstat (limited to 'client/src/root-helpers')
-rw-r--r-- | client/src/root-helpers/plugins-manager.ts | 4 | ||||
-rw-r--r-- | client/src/root-helpers/video.ts | 2 |
2 files changed, 3 insertions, 3 deletions
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) { | |||
317 | const script = document.createElement('script') | 317 | const script = document.createElement('script') |
318 | 318 | ||
319 | const destructor = () => { | 319 | const destructor = () => { |
320 | delete window[vector] | 320 | delete window[vector as any] |
321 | script.onerror = null | 321 | script.onerror = null |
322 | script.onload = null | 322 | script.onload = null |
323 | script.remove() | 323 | script.remove() |
@@ -333,7 +333,7 @@ async function dynamicImport (url: string) { | |||
333 | destructor() | 333 | destructor() |
334 | } | 334 | } |
335 | script.onload = () => { | 335 | script.onload = () => { |
336 | resolve(window[vector]) | 336 | resolve(window[vector as any]) |
337 | destructor() | 337 | destructor() |
338 | } | 338 | } |
339 | const loader = `import * as m from "${url}"; window.${vector} = m;` // export Module | 339 | 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: { | |||
21 | const wrapper = document.createElement('div') | 21 | const wrapper = document.createElement('div') |
22 | 22 | ||
23 | wrapper.style.position = 'relative' | 23 | wrapper.style.position = 'relative' |
24 | wrapper.style['padding-top'] = '56.25%' | 24 | wrapper.style.paddingTop = '56.25%' |
25 | 25 | ||
26 | iframe.style.position = 'absolute' | 26 | iframe.style.position = 'absolute' |
27 | iframe.style.inset = '0' | 27 | iframe.style.inset = '0' |