mirror of
https://codeberg.org/tacerus/teddit.git
synced 2024-11-29 11:19:22 +01:00
check if json.error_data exists
This commit is contained in:
parent
795aa70aa1
commit
33489ea234
@ -19,6 +19,7 @@ html
|
|||||||
if error
|
if error
|
||||||
if json.error_data.reason === "private"
|
if json.error_data.reason === "private"
|
||||||
h2 This is a private subreddit.
|
h2 This is a private subreddit.
|
||||||
|
if json.error_data
|
||||||
p Error: #{JSON.stringify(json.error_data)}
|
p Error: #{JSON.stringify(json.error_data)}
|
||||||
else
|
else
|
||||||
if show_nsfw_warning === true
|
if show_nsfw_warning === true
|
||||||
|
Loading…
Reference in New Issue
Block a user