cancel fetching comments if #isso-root is not available
This commit is contained in:
parent
31db6b61e7
commit
9161983a05
@ -46,6 +46,11 @@ require(["app/lib/ready", "app/config", "app/i18n", "app/api", "app/isso", "app/
|
|||||||
}
|
}
|
||||||
|
|
||||||
function fetchComments() {
|
function fetchComments() {
|
||||||
|
|
||||||
|
if ($('#isso-root').length == 0) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
$('#isso-root').textContent = '';
|
$('#isso-root').textContent = '';
|
||||||
api.fetch(isso_thread.getAttribute("data-isso-id") || location.pathname,
|
api.fetch(isso_thread.getAttribute("data-isso-id") || location.pathname,
|
||||||
config["max-comments-top"],
|
config["max-comments-top"],
|
||||||
|
Loading…
Reference in New Issue
Block a user