Skip to content

Commit 7298b0d

Browse files
committed
fix: removes quotes from script src links
1 parent a09e2d6 commit 7298b0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ function visitNode(tree) {
9696
sha256Hash.update(node.children[0].value)
9797
hashLists[node.tagName].push(`'sha256-${sha256Hash.digest('base64')}'`)
9898
} else if(node.properties.src) {
99-
hashLists[node.tagName].push(`'${node.properties.src}'`);
99+
hashLists[node.tagName].push(`${node.properties.src}`);
100100
} else if(node.tagName === 'link') {
101101
hashLists.style.push(`${node.properties.href}`);
102102
}

0 commit comments

Comments
 (0)