mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-13 20:11:19 -04:00
Lightly massage some of the generated JavaScript
This commit is contained in:
parent
31ad9566e6
commit
1867a3f121
19 changed files with 986 additions and 989 deletions
|
@ -1,8 +1,6 @@
|
|||
// Generated by CoffeeScript 2.4.1
|
||||
/*
|
||||
WebRTC shims for multiple browsers.
|
||||
*/
|
||||
var IceCandidate, PeerConnection, SessionDescription, WebSocket, XMLHttpRequest, chrome, document, location, webrtc, window;
|
||||
|
||||
if (typeof module !== "undefined" && module !== null ? module.exports : void 0) {
|
||||
window = {};
|
||||
|
@ -19,10 +17,9 @@ if (typeof module !== "undefined" && module !== null ? module.exports : void 0)
|
|||
IceCandidate = webrtc.RTCIceCandidate;
|
||||
SessionDescription = webrtc.RTCSessionDescription;
|
||||
WebSocket = require('ws');
|
||||
({XMLHttpRequest} = require('xmlhttprequest'));
|
||||
({ XMLHttpRequest } = require('xmlhttprequest'));
|
||||
}
|
||||
} else {
|
||||
window = this;
|
||||
document = window.document;
|
||||
chrome = window.chrome;
|
||||
location = window.location.search.substr(1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue