From 9428d68a9a2711989cb3f515c784ceafb70ea6be Mon Sep 17 00:00:00 2001 From: Jonas Leder <jonas@jonasled.de> Date: Wed, 18 Mar 2020 19:59:01 +0100 Subject: [PATCH] cookie.js will only be imported if enabled --- templates/home.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/home.html b/templates/home.html index 40280eb..5057b6d 100644 --- a/templates/home.html +++ b/templates/home.html @@ -7,7 +7,9 @@ <title>URL shorter</title> <script src="/static/external/jquery/jquery.js"></script> <script src="/static/jquery-ui.js"></script> + {% if cookieNotice %} <script src="/static/cookie.js"></script> + {% endif %} {% if recaptchaPublicKey %} <script src="https://www.google.com/recaptcha/api.js" async defer></script> <script> -- GitLab