mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-12 09:53:30 -05:00
49adb35811
[gdm] enable caching for the new CDN GitOrigin-RevId: 01128d2cc730198c726efb7b7bfd576a1fbd268e
15 lines
595 B
JavaScript
15 lines
595 B
JavaScript
import { captureMessage } from './infrastructure/error-reporter'
|
|
|
|
if (window.ExposedSettings.isOverleaf) {
|
|
const cdnLoadTest = document.createElement('img')
|
|
cdnLoadTest.addEventListener('error', function () {
|
|
captureMessage('CDN test 2 image load error (cdn.overleaf.net)')
|
|
})
|
|
cdnLoadTest.src = 'https://cdn.overleaf.net/img/1p.gif'
|
|
|
|
const cdnLoadTestOld = document.createElement('img')
|
|
cdnLoadTestOld.addEventListener('error', function () {
|
|
captureMessage('CDN test 2 image load error (cdn.overleaf.com)')
|
|
})
|
|
cdnLoadTestOld.src = 'https://cdn.overleaf.com/img/1p.gif'
|
|
}
|