Avoid infinite redirects in unread/group page

This commit is contained in:
Frederic Guillot 2017-03-06 18:51:57 -05:00
parent 07f3ae0a7b
commit 868c9e22b5
2 changed files with 1 additions and 9 deletions

File diff suppressed because one or more lines are too long

View File

@ -147,14 +147,6 @@ Miniflux.Item = (function() {
{
var pageHeading = null;
// redirect to unread if we're on a nothing to read page
if (window.location.href.indexOf('nothing_to_read=1') > -1 && nbUnreadItems > 0) {
window.location.href = '?action=unread';
} // reload to get a nothing to read page
else if (nbPageItems === 0) {
window.location.reload();
}
var pageCounterElement = document.getElementById("page-counter");
if (pageCounterElement) pageCounterElement.textContent = nbPageItems || '';