Fix(1607): Add remote-url to emit-success (#1608)

Fix(1607): Add remote-url to emit-success
This commit is contained in:
Renée Kooi 2019-06-05 15:14:28 +02:00 committed by GitHub
commit 9edb35fa40
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -480,7 +480,8 @@ class Uploader {
if (error) {
this.emitError(error)
} else {
this.emitSuccess(null, {
const url = data && data.Location ? data.Location : null
this.emitSuccess(url, {
response: {
responseText: JSON.stringify(data),
headers: {