Merge pull request #5001 from betagouv/fix-attachment-errors
javascript: ignore errors of attachments pooler
This commit is contained in:
commit
a2b50efa3b
1 changed files with 3 additions and 1 deletions
|
@ -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(() => {});
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue