Merge pull request #28626 from element-hq/t3chguy/web-friendly-buffers

Remove usages of Buffer so we don't need to ship the polyfill
This commit is contained in:
Michael Telatynski
2024-12-04 22:10:30 +00:00
committed by GitHub
17 changed files with 24 additions and 34 deletions

View File

@@ -102,7 +102,7 @@ test.describe("Device verification", () => {
// feed the QR code into the verification request.
const qrData = await readQrCode(infoDialog);
const verifier = await verificationRequest.evaluateHandle(
(request, qrData) => request.scanQRCode(new Uint8Array(qrData)),
(request, qrData) => request.scanQRCode(new Uint8ClampedArray(qrData)),
[...qrData],
);