diff options
author | 2023-10-18 19:57:02 -0700 | |
---|---|---|
committer | 2023-10-18 20:26:33 -0700 | |
commit | c60b3f52a5613fa56246b71aad432ef93c40b8f1 (patch) | |
tree | 24382ac6819e8ad4d317c9f63a95ee4456ca4374 /internal/ui/static/js/app.js | |
parent | 23d2cfe0f98f3d6acc04ef11653d3dbaf0b0b677 (diff) | |
download | v2-c60b3f52a5613fa56246b71aad432ef93c40b8f1.tar.gz v2-c60b3f52a5613fa56246b71aad432ef93c40b8f1.tar.zst v2-c60b3f52a5613fa56246b71aad432ef93c40b8f1.zip |
Add new page for background feeds refresh
Diffstat (limited to '')
-rw-r--r-- | internal/ui/static/js/app.js | 10 |
1 files changed, 3 insertions, 7 deletions
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. |