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
1 changed files with 1 additions and 1 deletions

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