mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
4cecc6383a
[web] rework the loading process for the CDN load test GitOrigin-RevId: dd14ca29668e88944457e03ffd8c921e2ce93929
9 lines
345 B
JavaScript
9 lines
345 B
JavaScript
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'
|
|
}
|