2021-08-25 04:25:21 -04:00
|
|
|
import { captureMessage } from './infrastructure/error-reporter'
|
|
|
|
|
2021-10-05 08:11:03 -04:00
|
|
|
if (window.ExposedSettings.isOverleaf) {
|
|
|
|
const cdnLoadTest = document.createElement('img')
|
|
|
|
cdnLoadTest.addEventListener('error', function () {
|
2021-10-21 07:44:31 -04:00
|
|
|
captureMessage('CDN test 2 image load error (cdn.overleaf.net)')
|
2021-10-05 08:11:03 -04:00
|
|
|
})
|
|
|
|
cdnLoadTest.src = 'https://cdn.overleaf.net/img/1p.gif'
|
2021-10-21 07:44:22 -04:00
|
|
|
|
|
|
|
const cdnLoadTestOld = document.createElement('img')
|
|
|
|
cdnLoadTestOld.addEventListener('error', function () {
|
2021-10-21 07:44:31 -04:00
|
|
|
captureMessage('CDN test 2 image load error (cdn.overleaf.com)')
|
2021-10-21 07:44:22 -04:00
|
|
|
})
|
|
|
|
cdnLoadTestOld.src = 'https://cdn.overleaf.com/img/1p.gif'
|
2021-10-05 08:11:03 -04:00
|
|
|
}
|