Merge pull request #5001 from betagouv/fix-attachment-errors

javascript: ignore errors of attachments pooler
This commit is contained in:
Paul Chavard 2020-04-07 12:44:42 +02:00 committed by GitHub
commit a2b50efa3b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -67,7 +67,9 @@ class RemotePoller {
let urls = this.urls;
this.reset();
for (let url of urls) {
ajax({ url, type: 'get' });
// Start the request. The JS payload in the response will update the page.
// (Errors are ignored, because background tasks shouldn't report errors to the user.)
ajax({ url, type: 'get' }).catch(() => {});
}
}