Skip to content
This repository has been archived by the owner on Dec 6, 2022. It is now read-only.

Commit

Permalink
fix: move script to body instead of head (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
robinske authored Nov 23, 2020
1 parent e343be4 commit 68142dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gatsby-browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const injectPinterestScript = ({ saveButton = false }) => {
}
}

document.getElementsByTagName("head")[0].appendChild(script);
document.getElementsByTagName("body")[0].appendChild(script);
};

addJS();
Expand Down

0 comments on commit 68142dc

Please sign in to comment.