Make badge and debug extend ui

Permits further ui extension
This commit is contained in:
Arlo Breault 2019-05-07 14:36:23 -04:00
parent 5b18729e77
commit 2b1852c1a5
6 changed files with 49 additions and 52 deletions

View file

@ -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 ||