mirror of
https://codeberg.org/tacerus/teddit.git
synced 2024-11-26 09:09:27 +01:00
add error notice if reddit is down
This commit is contained in:
parent
26dc6be763
commit
ac900088a2
@ -9,6 +9,8 @@ html
|
|||||||
h2 error
|
h2 error
|
||||||
p #{JSON.stringify(http_status_code)}
|
p #{JSON.stringify(http_status_code)}
|
||||||
p #{JSON.stringify(http_statustext)}
|
p #{JSON.stringify(http_statustext)}
|
||||||
|
if http_status_code == "401" || http_status_code == "503"
|
||||||
|
p This error is probably because Reddit itself is down.
|
||||||
else
|
else
|
||||||
- var subreddit = ''
|
- var subreddit = ''
|
||||||
if(user_preferences.subbed_subreddits && Array.isArray(user_preferences.subbed_subreddits))
|
if(user_preferences.subbed_subreddits && Array.isArray(user_preferences.subbed_subreddits))
|
||||||
|
Loading…
Reference in New Issue
Block a user