From b51169b545e38643abe252e31163e4aef3d9313e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20G=C3=B6ttsch?= Date: Sun, 14 Jun 2026 19:24:01 +0200 Subject: [PATCH] stripSDP: filter a=max-message-size and fix line-endings for cross-browser compat --- crypto.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crypto.js b/crypto.js index e043782..959ccb3 100644 --- a/crypto.js +++ b/crypto.js @@ -72,7 +72,8 @@ function hexToBuf(hex) { /* ─── QR compression: deflate-raw + base45 ─── */ function stripSDP(sdp) { - return sdp.split('\r\n').map(line => { + return sdp.split(/\r?\n/).map(line => { + if (line === '' || line.startsWith('a=max-message-size:')) return null; if (!line.startsWith('a=candidate:')) return line; const parts = line.split(' '); if (parts[2] === 'tcp') return null;