Skip to content

Commit 4835229

Browse files
committed
Merge pull request #163 from xdumaine/window-context
Use explicit reference to window.RTCPeerConnection for require context
2 parents 3925495 + 94fd14d commit 4835229

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

adapter.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ if (typeof window === 'undefined' || !window.navigator) {
134134

135135
// wrap static methods. Currently just generateCertificate.
136136
if (mozRTCPeerConnection.generateCertificate) {
137-
Object.defineProperty(RTCPeerConnection, 'generateCertificate', {
137+
Object.defineProperty(window.RTCPeerConnection, 'generateCertificate', {
138138
get: function() {
139139
if (arguments.length) {
140140
return mozRTCPeerConnection.generateCertificate.apply(null,
@@ -323,7 +323,7 @@ if (typeof window === 'undefined' || !window.navigator) {
323323

324324
// wrap static methods. Currently just generateCertificate.
325325
if (webkitRTCPeerConnection.generateCertificate) {
326-
Object.defineProperty(RTCPeerConnection, 'generateCertificate', {
326+
Object.defineProperty(window.RTCPeerConnection, 'generateCertificate', {
327327
get: function() {
328328
if (arguments.length) {
329329
return webkitRTCPeerConnection.generateCertificate.apply(null,

0 commit comments

Comments
 (0)