We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7aab28e commit 9d382ffCopy full SHA for 9d382ff
app/preprint/[id]/preprint-viewer.tsx
@@ -200,13 +200,15 @@ const PreprintViewer = ({
200
file={preprint.versions[0].public_download_url}
201
onLoadSuccess={(pdf: PDFDocumentProxy) => setPdf(pdf)}
202
onLoadError={(error) =>
203
- alertOnError({
204
- endpoint: preprint.versions[0].public_download_url,
205
- status: 'n/a',
206
- statusText: 'unknown',
207
- method: 'GET',
208
- apiError: error.message,
209
- })
+ window.location.hostname.includes('cdrxiv.org')
+ ? alertOnError({
+ endpoint: preprint.versions[0].public_download_url,
+ status: 'n/a',
+ statusText: 'unknown',
+ method: 'GET',
+ apiError: error.message,
210
+ })
211
+ : undefined
212
}
213
loading={
214
<Flex
0 commit comments