minor code review: just in case

This commit is contained in:
gorhill 2015-06-11 15:11:01 -04:00
parent 98af936d3c
commit 0a89e5827a
1 changed files with 5 additions and 0 deletions

View File

@ -325,6 +325,11 @@ var onHeadersReceived = function(details) {
return onRootFrameHeadersReceived(details); return onRootFrameHeadersReceived(details);
} }
// Just in case...
if ( details.type !== 'sub_frame' ) {
return;
}
// If we reach this point, we are dealing with a sub_frame // If we reach this point, we are dealing with a sub_frame
// Lookup the page store associated with this tab id. // Lookup the page store associated with this tab id.