mirror of
https://github.com/twisterarmy/twister-html.git
synced 2025-01-11 15:37:55 +00:00
Fix "Maximum call stack size exceeded" error
A dirty hack to wait for loading of wallet users list without "Maximum call stack size exceeded" error. It would be better to call `initWhoToFollow` after `loadFollowing` method is executed, but there is adventure of `setTimeout`: it reduces CPU usage if there are no users to suggest.
This commit is contained in:
parent
658cb76b15
commit
4ef977c78a
@ -590,8 +590,11 @@ function processSuggestion(arg, suggestion, followedBy) {
|
|||||||
$list.append(item).show();
|
$list.append(item).show();
|
||||||
$module.find('.refresh-users').show();
|
$module.find('.refresh-users').show();
|
||||||
$module.find('.loading-roller').hide();
|
$module.find('.loading-roller').hide();
|
||||||
} else
|
} else {
|
||||||
|
setTimeout(function(){
|
||||||
getRandomFollowSuggestion(processSuggestion);
|
getRandomFollowSuggestion(processSuggestion);
|
||||||
|
}, 100);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function closeSearchDialog()
|
function closeSearchDialog()
|
||||||
|
Loading…
Reference in New Issue
Block a user