Skip to content

Commit ccf7e51

Browse files
author
p01
committed
ResourceInfo now has an id ( aka resource_id ) and data ( aka responsebody ) which allow to show the detail view of a single resource
1 parent 2e8ea2e commit ccf7e51

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/network/network_service.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1351,10 +1351,17 @@ cls.NetworkLoggerResponse.prototype = new cls.NetworkLoggerResponsePrototype();
13511351

13521352
cls.ResourceInfo = function(entry)
13531353
{
1354+
this.id = entry.resource_id;
13541355
this.url = entry.url;
13551356
this.document_id = entry.document_id;
13561357
this.type = entry.type;
13571358
this.is_unloaded = entry.is_unloaded;
1359+
1360+
var lastResponse = entry.requests_responses.last;
1361+
if (lastResponse && lastResponse.saw_responsefinished)
1362+
{
1363+
this.data = lastResponse.responsebody;
1364+
}
13581365
};
13591366

13601367
cls.ResourceInfo.prototype = new URIPrototype("url");

0 commit comments

Comments
 (0)