Skip to content

Commit b4e5cd3

Browse files
author
p01
committed
Make sure there was at least one response
Expose the meta_data
1 parent a35bc86 commit b4e5cd3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/network/network_service.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1314,10 +1314,12 @@ cls.ResourceInfo = function(entry)
13141314
this.type = entry.type;
13151315
this.is_unloaded = entry.is_unloaded;
13161316

1317-
var lastResponse = entry.requests_responses.last;
1318-
if (lastResponse && lastResponse.saw_responsefinished)
1317+
var lastResponse = entry.requests_responses && entry.requests_responses.last;
1318+
if (lastResponse && lastResponse.responsebody)
13191319
{
13201320
this.data = lastResponse.responsebody;
1321+
if (cls.ResourceUtil && cls.ResourceUtil.get_meta_data)
1322+
this.data.meta = cls.ResourceUtil.get_meta_data(this);
13211323
}
13221324
};
13231325

0 commit comments

Comments
 (0)