From 72d88dc7cf549b7ffee9f11d87571ab87f881edd Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sat, 2 May 2020 15:12:29 +0100 Subject: [PATCH] Use correct attribute to reference JS file --- website/common/templatetags/sri.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/common/templatetags/sri.py b/website/common/templatetags/sri.py index 3582ded..c8c9b02 100644 --- a/website/common/templatetags/sri.py +++ b/website/common/templatetags/sri.py @@ -30,7 +30,7 @@ def attrs_to_str(attrs): def sri_js(url): path = os.path.join(settings.STATIC_ROOT, url) attrs = { - "href": static(url), + "src": static(url), "type": "text/javascript", "integrity": generate_sha256(path), "crossorigin": "anonymous",