File tree 1 file changed +11
-11
lines changed
packages/@vuepress/client/src/composables
1 file changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -99,17 +99,17 @@ export const queryHeadTag = ([
99
99
attrs ,
100
100
content = '' ,
101
101
] : HeadConfig ) : HTMLElement | null => {
102
- const attrsSelector = Object . entries ( attrs ) . map ( ( [ key , value ] ) => {
103
- if ( isString ( value ) ) {
104
- return `[ ${ key } =" ${ value } "]`
105
- }
106
-
107
- if ( value === true ) {
108
- return `[${ key } ]`
109
- }
110
-
111
- return ''
112
- } )
102
+ const attrsSelector = Object . entries ( attrs )
103
+ . map ( ( [ key , value ] ) => {
104
+ if ( isString ( value ) ) {
105
+ return `[ ${ key } =" ${ value } "]`
106
+ }
107
+ if ( value === true ) {
108
+ return `[${ key } ]`
109
+ }
110
+ return ''
111
+ } )
112
+ . join ( '' )
113
113
114
114
const selector = `head > ${ tagName } ${ attrsSelector } `
115
115
const tags = Array . from ( document . querySelectorAll < HTMLElement > ( selector ) )
You can’t perform that action at this time.
0 commit comments