Skip to content

Commit e470d07

Browse files
authored
Merge pull request #1187 from webrtcHacks/guard-maxmessagesize
chrome: don't polyfill .sctp and max-message-size
2 parents c3f4310 + 8e3d2eb commit e470d07

2 files changed

Lines changed: 24 additions & 21 deletions

File tree

src/js/common_shim.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,10 @@ export function shimMaxMessageSize(window, browserDetails) {
9696
if (!window.RTCPeerConnection) {
9797
return;
9898
}
99+
if (browserDetails.browser === 'chrome' && browserDetails.version > 102) {
100+
// Unified plan is supported so no need to do anything.
101+
return;
102+
}
99103

100104
if (!('sctp' in window.RTCPeerConnection.prototype)) {
101105
Object.defineProperty(window.RTCPeerConnection.prototype, 'sctp', {

0 commit comments

Comments
 (0)