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