1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-07-02 16:38:37 +00:00

Add new page for background feeds refresh

This commit is contained in:
Frédéric Guillot 2023-10-18 19:57:02 -07:00
parent 23d2cfe0f9
commit c60b3f52a5
21 changed files with 85 additions and 26 deletions

View file

@ -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.