فهرست منبع

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

jvoisin 1 سال پیش
والد
کامیت
ffe1be59ea
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      internal/ui/static/js/app.js

+ 1 - 1
internal/ui/static/js/app.js

@@ -433,7 +433,7 @@ function unsubscribeFromFeed() {
  * @param {string} page Page to redirect to.
  * @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 + "]");
 
     if (element) {