File tree Expand file tree Collapse file tree 1 file changed +4
-15
lines changed
packages/svelte/src/internal/client/dom/blocks Expand file tree Collapse file tree 1 file changed +4
-15
lines changed Original file line number Diff line number Diff line change @@ -33,21 +33,10 @@ export function head(render_fn) {
3333 head_anchor = /** @type {import('#client').TemplateNode } */ ( document . head . firstChild ) ;
3434 }
3535
36- var depth = 0 ;
37-
38- while ( head_anchor !== null ) {
39- if ( head_anchor . nodeType === 8 ) {
40- var data = /** @type {Comment } */ ( head_anchor ) . data ;
41- if ( data === HYDRATION_START ) {
42- if ( depth === 0 ) {
43- break ;
44- }
45- depth ++ ;
46- }
47- if ( data === HYDRATION_END ) {
48- depth -- ;
49- }
50- }
36+ while (
37+ head_anchor . nodeType !== 8 ||
38+ /** @type {Comment } */ ( head_anchor ) . data !== HYDRATION_START
39+ ) {
5140 head_anchor = /** @type {import('#client').TemplateNode } */ ( head_anchor . nextSibling ) ;
5241 }
5342
You can’t perform that action at this time.
0 commit comments