Skip to content

Commit 6f605c2

Browse files
committed
AC-10686: [PCI] SRI enabled on payment pages.
Fixes JS Eslint errors.
1 parent 583364f commit 6f605c2

File tree

1 file changed

+3
-2
lines changed
  • app/code/Magento/Csp/view/base/web/js

1 file changed

+3
-2
lines changed

app/code/Magento/Csp/view/base/web/js/sri.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@
44
*/
55
require.config({
66
onNodeCreated: function (node, config, moduleName, url) {
7+
'use strict';
78
if ('sriHashes' in window && url in window.sriHashes) {
8-
node.setAttribute("integrity", window.sriHashes[url])
9-
node.setAttribute("crossorigin", "anonymous")
9+
node.setAttribute('integrity', window.sriHashes[url]);
10+
node.setAttribute('crossorigin', 'anonymous');
1011
}
1112
}
1213
});

0 commit comments

Comments
 (0)