aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/assets/player/p2p-media-loader
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-08-05 15:17:18 +0200
committerChocobozzz <me@florianbigard.com>2021-08-05 15:17:18 +0200
commit421ff4618da64f0849353383f690a014024c40da (patch)
treebd4e9aa8d83b5566bdd59234da4fb2b891fea1b1 /client/src/assets/player/p2p-media-loader
parente83d06a7025a6b85bb8e648b1a5361b18ea83ed3 (diff)
parentff5f37e4f3d23ec8ade8baae5c1b73fe2ac7732c (diff)
downloadPeerTube-421ff4618da64f0849353383f690a014024c40da.tar.gz
PeerTube-421ff4618da64f0849353383f690a014024c40da.tar.zst
PeerTube-421ff4618da64f0849353383f690a014024c40da.zip
Merge branch 'release/3.3.0' into develop
Diffstat (limited to 'client/src/assets/player/p2p-media-loader')
-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