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:
parent
2318e9011d
commit
ffe1be59ea
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue