1
0
mirror of synced 2024-11-25 14:26:03 +03:00

Check for string value

This commit is contained in:
Michael Mackus 2017-02-20 09:21:39 -08:00 committed by alexweissman
parent c56c20cff0
commit cd08d805a4

View File

@ -82,7 +82,8 @@ define([
}, function () {
// Attempt to detect if a request was aborted
// Only works if the transport exposes a status property
if ('status' in $request && $request.status === 0) {
if ('status' in $request &&
($request.status === 0 || $request.status === '0')) {
return;
}