overleaf/services/web/frontend/js/cdn-load-test.js

10 lines
345 B
JavaScript
Raw Normal View History

import { captureMessage } from './infrastructure/error-reporter'
if (window.ExposedSettings.isOverleaf) {
const cdnLoadTest = document.createElement('img')
cdnLoadTest.addEventListener('error', function () {
captureMessage('CDN test image load error (cdn.overleaf.net)')
})
cdnLoadTest.src = 'https://cdn.overleaf.net/img/1p.gif'
}