diff --git a/wrapper-iframe.js b/wrapper-iframe.js deleted file mode 100644 index 00ce0cf..0000000 --- a/wrapper-iframe.js +++ /dev/null @@ -1,116 +0,0 @@ -(function(){ - function defineCallGenerate(){ - var parentOrigin; - try{parentOrigin=new URL(document.referrer).origin}catch(_){parentOrigin='*'} - function sanitizeOptions(options){ - try{ - return JSON.parse(JSON.stringify(options,function(k,v){return(typeof v==='function')?undefined:v})) - }catch(_){ - try{ - const seen=new WeakSet(); - const clone=(val)=>{ - if(val===null||val===undefined)return val; - const t=typeof val; - if(t==='function')return undefined; - if(t!=='object')return val; - if(seen.has(val))return undefined; - seen.add(val); - if(Array.isArray(val)){ - const arr=[];for(let i=0;i