Skip to content
This repository has been archived by the owner on Jun 1, 2024. It is now read-only.

Commit

Permalink
Show that we couldn't get the data
Browse files Browse the repository at this point in the history
  • Loading branch information
MyForest committed Feb 25, 2020
1 parent 725f91f commit 6baf98e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Lib/auto-updater.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,15 @@ async function updateFeedCache() {
const result = await response.json()

if (result) {
if (result.success == false) {
if (result.message == "406 Not Acceptable. Route not found") {
// Go to login page. Sadly this will direct to the starting page afterwards, not back here
document.location = "./../"
} else {
$(".feed-refresh-indicator").html(result.message)
}
return
}

Object.entries(config.app).map(([configKey, configItem]) => {

Expand Down

0 comments on commit 6baf98e

Please sign in to comment.