mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-14 23:11:29 -04:00
Make badge and debug extend ui
Permits further ui extension
This commit is contained in:
parent
5b18729e77
commit
2b1852c1a5
6 changed files with 49 additions and 52 deletions
|
@ -4,6 +4,8 @@ WebRTC shims for multiple browsers.
|
|||
|
||||
if module?.exports
|
||||
window = {}
|
||||
document =
|
||||
getElementById: () -> null,
|
||||
location = ''
|
||||
|
||||
if not TESTING? or not TESTING
|
||||
|
@ -16,10 +18,11 @@ if module?.exports
|
|||
WebSocket = require 'ws'
|
||||
{ XMLHttpRequest } = require 'xmlhttprequest'
|
||||
|
||||
process.nextTick () -> init true
|
||||
process.nextTick () -> init
|
||||
|
||||
else
|
||||
window = this
|
||||
document = window.document
|
||||
location = window.location.search.substr(1)
|
||||
|
||||
PeerConnection = window.RTCPeerConnection || window.mozRTCPeerConnection ||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue