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()
|
||||
ontimeout: -> req.onloadend()
|
||||
}
|
||||
if typeof gmReq.abort is 'function'
|
||||
if gmReq and typeof gmReq.abort is 'function'
|
||||
req.abort = ->
|
||||
try
|
||||
gmReq.abort()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user