mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-03-03 02:05:02 +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,
|
iError,
|
||||||
data,
|
data,
|
||||||
cached,
|
cached,
|
||||||
|
@ -173,7 +173,7 @@ export class AbstractFetchRemote
|
||||||
)
|
)
|
||||||
.catch(err => {
|
.catch(err => {
|
||||||
console.error({fetchError:err});
|
console.error({fetchError:err});
|
||||||
fCallback?.(
|
fCallback && fCallback(
|
||||||
'TimeoutError' == err.reason ? 3 : (err.name == 'AbortError' ? 2 : 1),
|
'TimeoutError' == err.reason ? 3 : (err.name == 'AbortError' ? 2 : 1),
|
||||||
err
|
err
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue