Use correct attribute to reference JS file
This commit is contained in:
parent
73c1e142b6
commit
72d88dc7cf
1 changed files with 1 additions and 1 deletions
|
@ -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",
|
||||
|
|
Reference in a new issue