Add a WebExtUI the makes use of the new assests

The browser icon shows the on/off state.
This commit is contained in:
Arlo Breault 2019-05-07 15:44:01 -04:00
parent 2b1852c1a5
commit e7f3ade068
5 changed files with 18 additions and 8 deletions

View file

@ -5,7 +5,8 @@ WebRTC shims for multiple browsers.
if module?.exports
window = {}
document =
getElementById: () -> null,
getElementById: () -> null
chrome = {}
location = ''
if not TESTING? or not TESTING
@ -23,6 +24,7 @@ if module?.exports
else
window = this
document = window.document
chrome = window.chrome
location = window.location.search.substr(1)
PeerConnection = window.RTCPeerConnection || window.mozRTCPeerConnection ||