Commit 1b89cb7e authored by tom's avatar tom

typos

parent 155948f3
...@@ -22,7 +22,7 @@ function makePolicyMap() { ...@@ -22,7 +22,7 @@ function makePolicyMap() {
'connect-src': [ 'connect-src': [
KEY_WORDS.SELF, KEY_WORDS.SELF,
// webpack hmr in safari doesn't recognize localhost 'self' for some reason // webpack hmr in safari doesn't recognize localhost as 'self' for some reason
isDev() ? 'ws://localhost:3000/_next/webpack-hmr' : '', isDev() ? 'ws://localhost:3000/_next/webpack-hmr' : '',
// client error monitoring // client error monitoring
...@@ -88,7 +88,7 @@ function makePolicyMap() { ...@@ -88,7 +88,7 @@ function makePolicyMap() {
export default function getCspPolicy() { export default function getCspPolicy() {
const policyMap = makePolicyMap(); const policyMap = makePolicyMap();
const policyHeader = Object.entries(policyMap) const policyString = Object.entries(policyMap)
.map(([ key, value ]) => { .map(([ key, value ]) => {
if (!value || value.length === 0) { if (!value || value.length === 0) {
return; return;
...@@ -99,5 +99,5 @@ export default function getCspPolicy() { ...@@ -99,5 +99,5 @@ export default function getCspPolicy() {
.filter(Boolean) .filter(Boolean)
.join(';'); .join(';');
return policyHeader; return policyString;
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment