Merge pull request #10 from upsuper/master
Invalidate any content script
This commit is contained in:
commit
938f8624e8
2 changed files with 4 additions and 0 deletions
|
@ -25,6 +25,8 @@ function getIPs(callback){
|
|||
//bypass naive webrtc blocking
|
||||
if (!RTCPeerConnection) {
|
||||
var iframe = document.createElement('iframe');
|
||||
//invalidate content script
|
||||
iframe.sandbox = 'allow-same-origin';
|
||||
iframe.style.display = 'none';
|
||||
document.body.appendChild(iframe);
|
||||
var win = iframe.contentWindow;
|
||||
|
|
|
@ -32,6 +32,8 @@
|
|||
//bypass naive webrtc blocking
|
||||
if (!RTCPeerConnection) {
|
||||
var iframe = document.createElement('iframe');
|
||||
//invalidate content script
|
||||
iframe.sandbox = 'allow-same-origin';
|
||||
iframe.style.display = 'none';
|
||||
document.body.appendChild(iframe);
|
||||
var win = iframe.contentWindow;
|
||||
|
|
Loading…
Reference in a new issue