File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -8,18 +8,18 @@ export const HeadElement = <T extends ElementType<any> = 'link'>(props: { as?: T
88
99 useMemo ( ( ) => {
1010 const name = props . name ;
11- let selecter = '' ;
11+ let selector = '' ;
1212 if ( props . as && / ( b a s e | t i t l e ) / . test ( props . as as string ) ) {
13- selecter = `${ props . as } :not([data-head])` ;
13+ selector = `${ props . as } :not([data-head])` ;
1414 }
1515 if ( props . as === 'meta' && name ) {
16- selecter = `meta[name="${ name } "]:not([data-head])` ;
16+ selector = `meta[name="${ name } "]:not([data-head])` ;
1717 }
1818 if ( props . as === 'meta' && props . charSet ) {
19- selecter = `meta[charset]:not([data-head])` ;
19+ selector = `meta[charset]:not([data-head])` ;
2020 }
21- if ( selecter ) {
22- const dom = document . querySelector ( selecter ) ;
21+ if ( selector ) {
22+ const dom = document . querySelector ( selector ) ;
2323 dom ?. remove ( ) ;
2424 }
2525 } , [ ] ) ;
You can’t perform that action at this time.
0 commit comments