Skip to content

Commit

Permalink
fix(buildpermissionspolicyheaders): remove extra parens from empty `p…
Browse files Browse the repository at this point in the history
…ermissions-policy` declarations
  • Loading branch information
trezy committed May 22, 2021
1 parent 1267e48 commit f6506da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/buildPermissionsPolicyHeaders.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ module.exports = function buildPermissionsPolicyHeaders(options = {}) {
{
key: 'Permissions-Policy',
value: crunchPermissionsPolicyHeader(supportedDirectives.reduce((accumulator, directive) => {
accumulator[directive] = permissionsPolicy[directive] || "()"
accumulator[directive] = permissionsPolicy[directive] || ''
return accumulator
}, {})),
},
Expand Down

0 comments on commit f6506da

Please sign in to comment.