mirror of
https://github.com/liriliri/eruda.git
synced 2026-03-24 09:48:37 +08:00
Fix: Xhr response text #6
This commit is contained in:
@@ -39,14 +39,17 @@ export default class Request extends util.Emitter
|
||||
}
|
||||
handleDone()
|
||||
{
|
||||
var xhr = this._xhr;
|
||||
var xhr = this._xhr,
|
||||
resType = xhr.responseType;
|
||||
|
||||
var resTxt = (resType === '' || resType === 'text') ? xhr.responseText : '';
|
||||
|
||||
this.emit('update', this._id, {
|
||||
status: xhr.status,
|
||||
done: true,
|
||||
size: getSize(xhr),
|
||||
time: util.now(),
|
||||
resTxt: xhr.responseText
|
||||
resTxt: resTxt
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user