Browse Source

Replace keys when inserting style/script tags

main
Soichiro Miki 6 years ago
parent
commit
16515ce4b9
  1. 4
      plugins/gatsby-remark-header-custom-ids/gatsby-ssr.js

4
plugins/gatsby-remark-header-custom-ids/gatsby-ssr.js

@ -59,7 +59,7 @@ exports.onRenderBody = ({setHeadComponents}, pluginOptions) => {
`;
const style = icon ? (
<style key={`gatsby-remark-autolink-headers-style`} type="text/css">
<style key="gatsby-remark-header-custom-ids-style" type="text/css">
{styles}
</style>
) : (
@ -69,7 +69,7 @@ exports.onRenderBody = ({setHeadComponents}, pluginOptions) => {
return setHeadComponents([
style,
<script
key={`gatsby-remark-autolink-headers-script`}
key="gatsby-remark-header-custom-ids-script"
dangerouslySetInnerHTML={{__html: script}}
/>,
]);

Loading…
Cancel
Save