Skip to content

Commit

Permalink
Merge pull request #5 from slsfi/hotfix/comment-link
Browse files Browse the repository at this point in the history
fix: fix the attribute issue causing compile error
  • Loading branch information
Niklas Liljestrand authored Mar 10, 2020
2 parents 313f7c8 + e1b375c commit 9c36c8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/comments/comments.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ export class CommentsComponent {
}
}.bind(this), 500);
} else if ( elem.classList !== undefined && elem.classList.contains('ext') ) {
const ref = window.open(elem.href, '_blank', 'location=no');
const ref = window.open(elem.getAttribute('href'), '_blank', 'location=no');
}
} catch ( e ) {}

Expand Down

1 comment on commit 9c36c8a

@toffebjorkskog
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, i also fixed the same thing, but in an other way. did't see this hotfix branch
384ef6a

Please sign in to comment.