Skip to content

Commit

Permalink
add pcerrors_promise.html
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-ivar committed Sep 7, 2024
1 parent 227b20c commit 9726276
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions pcerrors_promise.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<!DOCTYPE html>
<html>
<body>
<script type="module">
const a = new RTCPeerConnection();
a.createDataChannel('');
a.createOffer()
.then(offer => {
offer.sdp = offer.sdp.replaceAll(/a=ice-ufrag:.+/img, 'a=ice-ufrag:');
return a.setLocalDescription(offer);
});
</script>
</body>
</html>

0 comments on commit 9726276

Please sign in to comment.