mirror of https://github.com/docusealco/docuseal
				
				
				
			
			You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							20 lines
						
					
					
						
							415 B
						
					
					
				
			
		
		
	
	
							20 lines
						
					
					
						
							415 B
						
					
					
				| import * as Sentry from '@sentry/browser'
 | |
| 
 | |
| const sentryDsn = document.querySelector('meta[name="sentry-dsn"]')?.getAttribute('content')
 | |
| 
 | |
| if (sentryDsn) {
 | |
|   Sentry.init({
 | |
|     dsn: sentryDsn,
 | |
|     beforeSend (event) {
 | |
|       if (event.request.url.match(/\/[ds]\//)) {
 | |
|         event.request.url = event.request.url.slice(0, -6)
 | |
|       }
 | |
| 
 | |
|       return event
 | |
|     },
 | |
|     beforeBreadcrumb () {
 | |
|       return null
 | |
|     }
 | |
|   })
 | |
| }
 |