mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2024-12-24 14:07:03 +01:00
Merge pull request #66 from jelle619/master
Titan now displays an error when JavaScript isn't enabled
This commit is contained in:
commit
6c4b850669
@ -87,3 +87,7 @@ def signin_complete():
|
||||
@embed.route("/login_discord")
|
||||
def login_discord():
|
||||
return redirect(url_for("user.login_authenticated", redirect=url_for("embed.signin_complete", _external=True)))
|
||||
|
||||
@embed.route("/noscript")
|
||||
def noscript():
|
||||
return render_template("noscript.html.j2")
|
@ -9,6 +9,11 @@
|
||||
<link type="text/css" rel="stylesheet" href="{{ url_for('static', filename='css/embedstyle.css') }}">
|
||||
<link id="css-theme" type="text/css" rel="stylesheet" href="">
|
||||
|
||||
<!--Check whether JavaScript is enabled, otherwise redirect to error page-->
|
||||
<noscript>
|
||||
<meta http-equiv="refresh" content="0; URL={{ url_for("embed.noscript") }}">
|
||||
</noscript>
|
||||
|
||||
<!--Let browser know website is optimized for mobile-->
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
||||
|
||||
|
43
webapp/titanembeds/templates/noscript.html.j2
Normal file
43
webapp/titanembeds/templates/noscript.html.j2
Normal file
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user