Skip to content

Commit 805852c

Browse files
authored
Merge pull request #22 from korziee/master
content_security_policy is not overwritten by default anymore.
2 parents 2c15e94 + 7033242 commit 805852c

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
@@ -83,7 +83,7 @@ module.exports = (api, options) => {
8383
return resolve(JSON.stringify(jsonContent, null, 2))
8484
}
8585

86-
jsonContent.content_security_policy = "script-src 'self' 'unsafe-eval'; object-src 'self'"
86+
jsonContent.content_security_policy = jsonContent.content_security_policy || "script-src 'self' 'unsafe-eval'; object-src 'self'"
8787

8888
try {
8989
fs.statSync(keyFile)

0 commit comments

Comments
 (0)