Fixes the comment check for linked comment.

This commit is contained in:
Abijeet 2017-08-22 01:39:09 +05:30
parent b5cd3bff3c
commit 6920d6eef1
1 changed files with 2 additions and 4 deletions

View File

@ -104,12 +104,10 @@ function getUrlParameter(name) {
function focusLinkedComment(linkedCommentId) { function focusLinkedComment(linkedCommentId) {
let comment = document.getElementById(linkedCommentId); let comment = document.getElementById(linkedCommentId);
if (comment && comment.length === 0) { if (comment && comment.length !== 0) {
return;
}
window.setupPageShow.goToText(linkedCommentId); window.setupPageShow.goToText(linkedCommentId);
} }
}
module.exports = { module.exports = {
data, methods, mounted, computed, components: { data, methods, mounted, computed, components: {