diff --git a/webapp/titanembeds/blueprints/embed/embed.py b/webapp/titanembeds/blueprints/embed/embed.py index ca61a9d..b828dde 100644 --- a/webapp/titanembeds/blueprints/embed/embed.py +++ b/webapp/titanembeds/blueprints/embed/embed.py @@ -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") \ No newline at end of file diff --git a/webapp/titanembeds/templates/embed.html.j2 b/webapp/titanembeds/templates/embed.html.j2 index e8fba49..f688042 100644 --- a/webapp/titanembeds/templates/embed.html.j2 +++ b/webapp/titanembeds/templates/embed.html.j2 @@ -8,6 +8,11 @@ + + + @@ -381,4 +386,4 @@ } - \ No newline at end of file + diff --git a/webapp/titanembeds/templates/noscript.html.j2 b/webapp/titanembeds/templates/noscript.html.j2 new file mode 100644 index 0000000..275d422 --- /dev/null +++ b/webapp/titanembeds/templates/noscript.html.j2 @@ -0,0 +1,43 @@ + + + + + + + + Error - Titan Embeds for Discord + + + + + + + + +
+
+
+
+

Uh oh!

+
+
+
+

It seems like you don't have JavaScript enabled. Titan Embeds needs JavaScript in order to function. It could be that your browser doesn't support JavaScript, but it's more likely you have it disabled.

+

 

+

In case you don't know how to enable JavaScript, detailed instructions for most major browsers can be found here.

+

 

+

Please enable JavaScript or use a browser that supports JavaScript and try again.

+
+
+
+ Titan Embeds logo +
+
+
+ + +