Commit a05201e 1 parent 9d737b6 commit a05201e Copy full SHA for a05201e
File tree 4 files changed +4
-2
lines changed
development-runtime/src/pages/head-function-export
production-runtime/src/pages/head-function-export
packages/gatsby/cache-dir/head
4 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -60,6 +60,7 @@ export function Head() {
60
60
< script type = "text/javascript" >
61
61
{ `window.__SOME_GLOBAL_TO_CHECK_CALL_COUNT__ = (window.__SOME_GLOBAL_TO_CHECK_CALL_COUNT__ || 0 ) + 1` }
62
62
</ script >
63
+ Adding-this-text-here-should-not-break-things
63
64
</ >
64
65
)
65
66
}
Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ export function Head() {
41
41
< script type = "text/javascript" >
42
42
{ `window.__SOME_GLOBAL_TO_CHECK_CALL_COUNT__ = (window.__SOME_GLOBAL_TO_CHECK_CALL_COUNT__ || 0 ) + 1` }
43
43
</ script >
44
+ Adding-this-text-here-should-not-break-things
44
45
</ >
45
46
)
46
47
}
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ const onHeadRendered = () => {
28
28
const seenIds = new Map ( )
29
29
for ( const node of hiddenRoot . childNodes ) {
30
30
const nodeName = node . nodeName . toLowerCase ( )
31
- const id = node . attributes . id ?. value
31
+ const id = node . attributes ? .id ?. value
32
32
33
33
if ( ! VALID_NODE_NAMES . includes ( nodeName ) ) {
34
34
warnForInvalidTags ( nodeName )
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ export function headHandlerForSSR({
57
57
const seenIds = new Map ( )
58
58
for ( const node of headNodes ) {
59
59
const { rawTagName } = node
60
- const id = node . attributes . id
60
+ const id = node . attributes ? .id
61
61
62
62
if ( ! VALID_NODE_NAMES . includes ( rawTagName ) ) {
63
63
warnForInvalidTags ( rawTagName )
You can’t perform that action at this time.
0 commit comments