Commit 201312d0 authored by wangmingming's avatar wangmingming

7777

parent 83381d58
......@@ -2554,16 +2554,7 @@ Object.defineProperties(RTCPeerConnection.prototype, {
createDataChannel: {
value: v_saf(function createDataChannel(label, option) {
print(" [*] RTCPeerConnection -> createDataChannel[func]", [].slice.call(arguments));
let res = {
'onopen': function onopen() {
print(" [*] RTCPeerConnection -> createDataChannel[func] onopen", [].slice.call(arguments));
},
'onmessage': function onmessage() {
print(" [*] RTCPeerConnection -> createDataChannel[func] onmessage", [].slice.call(arguments));
},
}
let res = new RTCDataChannel(label);
return proxy(res, 'dataChannel')
})
},
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment