Skip to content

Commit

Permalink
CTemplar#1484 update SRI
Browse files Browse the repository at this point in the history
  • Loading branch information
PrabhuSuriya committed Jan 27, 2022
1 parent 3b7918d commit f4258fc
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 22 deletions.
4 changes: 2 additions & 2 deletions src/app/shared/services/dynamic-script-loader.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ export class DynamicScriptLoaderService {
ScriptStore.push({
name: 'stripe-key',
src: 'assets/js/stripe-key.js',
sri: 'sha384-JDGkVN7k9z4zrfIU9vxsCnmRQmovcRLzQW5RgRyNwjxtyaQSGYYttwXnqE8HvmtZ',
sri: 'sha384-3ZBePXfjqgenQl/uMO2cCB5c3l8LpWDyz9AnBZb8k3Oh9YRv8OHSCoaGcwsxIF7Y sha384-JDGkVN7k9z4zrfIU9vxsCnmRQmovcRLzQW5RgRyNwjxtyaQSGYYttwXnqE8HvmtZ',
});
} else {
ScriptStore.push({
name: 'stripe-key',
src: 'assets/js/stripe-test-key.js',
sri: 'sha384-eRbJtkTTlr+WrFY9Rzm8tcQOKkGgqHlk002ZR4S50s4CMM78iNIR/F/Sv38Opr02',
sri: 'sha384-aBGfLiD/BctqwvvHykCsbNdXCL0MRjUJKJs2bekbaz7fx8W9aw5gjsYvWrfjkfkY sha384-eRbJtkTTlr+WrFY9Rzm8tcQOKkGgqHlk002ZR4S50s4CMM78iNIR/F/Sv38Opr02',
});
}
ScriptStore.forEach((script: any) => {
Expand Down
39 changes: 19 additions & 20 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,27 +24,26 @@
<meta name="theme-color" content="#ffffff" />

<link
href="assets/fonts/lato/fontsLato.css"
rel="stylesheet"
integrity="sha384-C/WJNZ8+0GM2Nr6t9E8FOmgeDFcpCkwB6hgeIyJ8yktSE/al/+7n1ledPDZ+9Ml/"
crossorigin="anonymous"
/>

<link
href="assets/css/noscript-styles.css"
rel="stylesheet"
integrity="sha384-HSFuDV+gvhEFLmrEJj769RQesrMFiTdamq07+4t2nU32lPkpEewtZn6PgqDAMxb+"
crossorigin="anonymous"
/>
</head>
href="assets/fonts/lato/fontsLato.css"
rel="stylesheet"
integrity="sha384-/N2r2SuQqZzbVYnRQ46nWM/1hb4Sq2ugA0ExDIdJ7ylolZwjRoMGc1QecFaX0/KN sha384-C/WJNZ8+0GM2Nr6t9E8FOmgeDFcpCkwB6hgeIyJ8yktSE/al/+7n1ledPDZ+9Ml/"
crossorigin="anonymous"
/>
<link
href="assets/css/noscript-styles.css"
rel="stylesheet"
integrity="sha384-SB5Pbs4g4KemY6r3ygQnc20NsuttdPxP8kv06ElX89hCEzUCwBZzYgS4IjRtfwJe sha384-HSFuDV+gvhEFLmrEJj769RQesrMFiTdamq07+4t2nU32lPkpEewtZn6PgqDAMxb+"
crossorigin="anonymous"
/>
</head>

<body class="theme-light">
<script
type="text/javascript"
src="assets/js/browser-compatibility.js"
integrity="sha384-vGLF2xv1JKjBt9PRS2RXYUp1GiQC8l7LCmLdLX1kzLkaxtMxwVjxM1DOt07rbYgo"
crossorigin="anonymous"
></script>
<body class="theme-light">
<script
type="text/javascript"
src="assets/js/browser-compatibility.js"
integrity="sha384-mhcN664/BO0dWWc0rLVEw8EJ8QhKxq8EOO78By0V27crnSi4Hc7yeHpyQ8dgAuJX sha384-vGLF2xv1JKjBt9PRS2RXYUp1GiQC8l7LCmLdLX1kzLkaxtMxwVjxM1DOt07rbYgo"
crossorigin="anonymous"></script>

<noscript>
<header class="nav-fixed" role="banner">
Expand Down

0 comments on commit f4258fc

Please sign in to comment.