Skip to content

variousjs/sentry

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HTML Script

<script>
window.sentry_ttiStartTime = +new Date()
window.sentry_unhandledErrors = []
window.sentry_errorErrors = []

window.addEventListener('unhandledrejection', (event) => {
  if (window.sentry_captureUnhandled) {
    window.sentry_captureUnhandled(event)
  } else {
    window.sentry_unhandledErrors.push(event)
  }
})
window.addEventListener('error', (event) => {
  if (window.sentry_captureError) {
    window.sentry_captureError(event)
  } else {
    window.sentry_errorErrors.push(event)
  }
}, true)
</script>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors