1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-06-27 16:36:00 +00:00

Use a default parameter for goToPage as isn't ~always called with a single one

This commit is contained in:
jvoisin 2025-01-20 16:18:09 +01:00 committed by Frédéric Guillot
parent 2318e9011d
commit ffe1be59ea

View file

@ -433,7 +433,7 @@ function unsubscribeFromFeed() {
* @param {string} page Page to redirect to. * @param {string} page Page to redirect to.
* @param {boolean} fallbackSelf Refresh actual page if the page is not found. * @param {boolean} fallbackSelf Refresh actual page if the page is not found.
*/ */
function goToPage(page, fallbackSelf) { function goToPage(page, fallbackSelf = true) {
const element = document.querySelector(":is(a, button)[data-page=" + page + "]"); const element = document.querySelector(":is(a, button)[data-page=" + page + "]");
if (element) { if (element) {