split and organize coffee files, improve Cake build tasks

This commit is contained in:
Serene Han 2016-01-14 16:28:32 -08:00
parent e433af26f8
commit fa9f58c9ab
10 changed files with 517 additions and 391 deletions

14
proxy/shims.coffee Normal file
View file

@ -0,0 +1,14 @@
###
WebrTC shims for multiple browsers.
###
if 'undefined' != typeof module && 'undefined' != typeof module.exports
console.log 'not in browser.'
else
window.PeerConnection = window.RTCPeerConnection ||
window.mozRTCPeerConnection ||
window.webkitRTCPeerConnection
window.RTCIceCandidate = window.RTCIceCandidate || window.mozRTCIceCandidate
window.RTCSessionDescription = window.RTCSessionDescription ||
window.mozRTCSessionDescription