aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src
diff options
context:
space:
mode:
Diffstat (limited to 'client/src')
-rw-r--r--client/src/assets/player/p2p-media-loader/segment-validator.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/src/assets/player/p2p-media-loader/segment-validator.ts b/client/src/assets/player/p2p-media-loader/segment-validator.ts
index a28474793..d0a4c4a3f 100644
--- a/client/src/assets/player/p2p-media-loader/segment-validator.ts
+++ b/client/src/assets/player/p2p-media-loader/segment-validator.ts
@@ -85,7 +85,7 @@ async function sha256Hex (data?: ArrayBuffer) {
85 } 85 }
86 86
87 // Fallback for non HTTPS context 87 // Fallback for non HTTPS context
88 const shaModule = await import('sha.js') 88 const shaModule = (await import('sha.js') as any).default
89 return new shaModule.sha256().update(Buffer.from(data)).digest('hex') 89 return new shaModule.sha256().update(Buffer.from(data)).digest('hex')
90} 90}
91 91