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):
|
def sri_js(url):
|
||||||
path = os.path.join(settings.STATIC_ROOT, url)
|
path = os.path.join(settings.STATIC_ROOT, url)
|
||||||
attrs = {
|
attrs = {
|
||||||
"href": static(url),
|
"src": static(url),
|
||||||
"type": "text/javascript",
|
"type": "text/javascript",
|
||||||
"integrity": generate_sha256(path),
|
"integrity": generate_sha256(path),
|
||||||
"crossorigin": "anonymous",
|
"crossorigin": "anonymous",
|
||||||
|
|
Reference in a new issue