UNPKG

overcentric

Version:

A lightweight, privacy-focused toolkit for modern SaaS web applications

1 lines 620 B
"use strict";(this.webpackChunkovercentric=this.webpackChunkovercentric||[]).push([[399],{188:(r,e,o)=>{o.r(e),o.d(e,{initErrorCaptureFeature:()=>i,loadErrorCapture:()=>n});let t=null;async function n(){try{return t||(t=Promise.resolve({initErrorCapture:r=>{const e=window.onerror;window.onerror=(o,t,n,i,u)=>(r("$error",{message:o,url:t,line:n,column:i,error:null==u?void 0:u.toString()}),!(!e||"function"!=typeof e)&&e(o,t,n,i,u))}}).catch((r=>{throw t=null,new Error(`Failed to load error capture module: ${r.message}`)}))),t}catch(r){throw t=null,r}}async function i(r){const{initErrorCapture:e}=await n();e(r)}}}]);