Skip to content

Commit

Permalink
Fixed (#63) issue where WARCreation process would halt if there were …
Browse files Browse the repository at this point in the history
…no CSS files on the page.
  • Loading branch information
machawk1 committed Aug 13, 2014
1 parent 7365589 commit 6163483
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions js/warcGenerator.js
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,7 @@ function generateWarc(o_request, o_sender, f_callback){
responseHeaders[requestHeader] &&
cssregexp.exec(responseHeaders[requestHeader]) != null)
{
if(cssURIs === null){break;}
responsesToConcatenate[requestHeader] = "pending";
console.log(requestHeader+" is a CSS file");
var respHeader = responseHeaders[requestHeader] + CRLF + CRLF;
Expand Down

0 comments on commit 6163483

Please sign in to comment.