overleaf/services/web/frontend/js/cdn-load-test.js
Jakob Ackermann d70937e0da Merge pull request #4837 from overleaf/tm-cdn-load-error-reporting
Move CDN load test to separate file and report error to sentry

GitOrigin-RevId: 5870fae9939a62848d3a39899a1da3608935988b
2021-08-26 08:02:59 +00:00

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'