Skip to content

Commit

Permalink
fix(query): To avoid empty html returns. (#104)
Browse files Browse the repository at this point in the history
  • Loading branch information
pelord authored and mbarbeau committed Nov 21, 2017
1 parent cae1668 commit d49a877
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/lib/query/shared/query.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,11 @@ export class QueryService {
break;
}

if ( res['_body'] === '<body></body>') {
return [];
}


return [{
id: 'html1',
source: 'title',
Expand Down

0 comments on commit d49a877

Please sign in to comment.