Skip to content

Commit

Permalink
fix(client): allow double quotes in head tag (close #1174) (#1176)
Browse files Browse the repository at this point in the history
  • Loading branch information
tinyfind committed Dec 6, 2022
1 parent d93b682 commit 69956c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/client/src/setupUpdateHead.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export const queryHeadTag = ([
const attrsSelector = Object.entries(attrs)
.map(([key, value]) => {
if (isString(value)) {
return `[${key}="${value}"]`
return `[${key}=${JSON.stringify(value)}]`
}
if (value === true) {
return `[${key}]`
Expand Down

0 comments on commit 69956c0

Please sign in to comment.