Tolerate nothing being returned from GM.xmlHttpRequest #2256

This commit is contained in:
ccd0 2019-03-30 12:07:58 -07:00
parent 41f0becf69
commit 84b52e2a40

View File

@ -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()