You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
function wrun(e,n="Worker"){var r=(e,n)=>({worker:e,error:n});if("undefined"==typeof window)return r(null,{code:1,message:'The current scope has no "window" object available.'});if(!hasOwnProperty.call(window,"Blob")||!hasOwnProperty.call(window,"URL"))return r(null,{code:2,message:'The current application is not compatible with "wrun".'});if(!hasOwnProperty.call(window,n))return r(null,{code:3,message:`The worker type "${n}" does not exists on the current scope`});if("function"!=typeof e)return r(null,{code:4,message:"The wrun argument must be a function"});try{var o=new window.Blob([`(${e.toString()})()`],{type:"application/javascript"}),t=window.URL.createObjectURL(o);return r(new window[n](t),!1)}catch(e){return r(null,{code:0,error:e.message})}}"undefined"!=typeof module&&(module.exports=wrun);