From c60b3f52a5613fa56246b71aad432ef93c40b8f1 Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Wed, 18 Oct 2023 19:57:02 -0700 Subject: Add new page for background feeds refresh --- internal/ui/static/js/app.js | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'internal/ui/static/js/app.js') diff --git a/internal/ui/static/js/app.js b/internal/ui/static/js/app.js index 798962bc..80781ee2 100644 --- a/internal/ui/static/js/app.js +++ b/internal/ui/static/js/app.js @@ -204,14 +204,10 @@ function markEntryAsRead(element) { // Send the Ajax request to refresh all feeds in the background function handleRefreshAllFeeds() { let url = document.body.dataset.refreshAllFeedsUrl; - let request = new RequestBuilder(url); - request.withCallback(() => { - window.location.reload(); - }); - - request.withHttpMethod("GET"); - request.execute(); + if (url) { + window.location.href = url; + } } // Send the Ajax request to change entries statuses. -- cgit v1.2.3