javascript: ignore errors of attachments pooler
Pooling for attachment status is a background operation. Errors should not be reported to the user, who didn't even ask for this operation to take place. This is why we ignore all errors, whether Javascript exceptions or network errors.
This commit is contained in:
parent
7d712521cf
commit
38c0cdc360
1 changed files with 3 additions and 1 deletions
|
@ -67,7 +67,9 @@ class RemotePoller {
|
||||||
let urls = this.urls;
|
let urls = this.urls;
|
||||||
this.reset();
|
this.reset();
|
||||||
for (let url of urls) {
|
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