1
Fork 0

Use correct attribute to reference JS file

This commit is contained in:
Jake Howard 2020-05-02 15:12:29 +01:00
parent 73c1e142b6
commit 72d88dc7cf
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -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",