mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-10 15:08:28 +03:00
Drop Remote.request() aAbortActions parameter
This commit is contained in:
parent
bae103257c
commit
afd65c809d
6 changed files with 15 additions and 31 deletions
|
|
@ -123,16 +123,13 @@ export class AbstractFetchRemote
|
|||
* @param {Object=} oParameters
|
||||
* @param {?number=} iTimeout
|
||||
* @param {string=} sGetAdd = ''
|
||||
* @param {Array=} aAbortActions = []
|
||||
*/
|
||||
request(sAction, fCallback, params, iTimeout, sGetAdd, abortActions) {
|
||||
params = params || {};
|
||||
|
||||
const start = Date.now();
|
||||
|
||||
if (sAction && abortActions) {
|
||||
abortActions.forEach(actionToAbort => abort(actionToAbort));
|
||||
}
|
||||
abortActions && console.error('abortActions is obsolete');
|
||||
|
||||
fetchJSON(sAction, pString(sGetAdd),
|
||||
params,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue