mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
d70937e0da
Move CDN load test to separate file and report error to sentry GitOrigin-RevId: 5870fae9939a62848d3a39899a1da3608935988b
7 lines
295 B
JavaScript
7 lines
295 B
JavaScript
import { captureMessage } from './infrastructure/error-reporter'
|
|
|
|
var cdnLoadTest = document.createElement('img')
|
|
cdnLoadTest.addEventListener('error', function (event) {
|
|
captureMessage('CDN test image load error (cdn.overleaf.net)')
|
|
})
|
|
cdnLoadTest.src = 'https://cdn.overleaf.net/img/1p.gif'
|