Skip to content

Commit

Permalink
Fix: bfs for SSR: #154
Browse files Browse the repository at this point in the history
  • Loading branch information
robisim74 committed Dec 5, 2017
1 parent 46b5415 commit add93d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/models/bfs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export class BFS {
private static isValidNode(node: any): boolean {
if (typeof node !== "undefined" && node.nodeType == 1 && node.attributes) {
for (const attr of node.attributes) {
if (this.SELECTOR.test(attr.name)) return false;
if (attr && this.SELECTOR.test(attr.name)) return false;
}
}
return true;
Expand Down

0 comments on commit add93d3

Please sign in to comment.