mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-02-01 03:27:43 +08:00
TypeError fCallback not a function
This commit is contained in:
parent
732b6eb641
commit
3553bfa2d9
1 changed files with 2 additions and 2 deletions
|
@ -162,7 +162,7 @@ export class AbstractFetchRemote
|
|||
}
|
||||
}
|
||||
|
||||
fCallback?.(
|
||||
fCallback && fCallback(
|
||||
iError,
|
||||
data,
|
||||
cached,
|
||||
|
@ -173,7 +173,7 @@ export class AbstractFetchRemote
|
|||
)
|
||||
.catch(err => {
|
||||
console.error({fetchError:err});
|
||||
fCallback?.(
|
||||
fCallback && fCallback(
|
||||
'TimeoutError' == err.reason ? 3 : (err.name == 'AbortError' ? 2 : 1),
|
||||
err
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue