Tolerate nothing being returned from GM.xmlHttpRequest #2256
This commit is contained in:
parent
41f0becf69
commit
84b52e2a40
@ -128,7 +128,7 @@ CrossOrigin =
|
|||||||
onabort: -> req.onloadend()
|
onabort: -> req.onloadend()
|
||||||
ontimeout: -> req.onloadend()
|
ontimeout: -> req.onloadend()
|
||||||
}
|
}
|
||||||
if typeof gmReq.abort is 'function'
|
if gmReq and typeof gmReq.abort is 'function'
|
||||||
req.abort = ->
|
req.abort = ->
|
||||||
try
|
try
|
||||||
gmReq.abort()
|
gmReq.abort()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user