Skip to content

Commit

Permalink
Initialize scripts on onInitialClientRender (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
victornguyen authored and raae committed Jul 25, 2019
1 parent 6bc9257 commit cd3ea90
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion gatsby-browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ const processInstagram = () => {
}
};

exports.onRouteUpdate = () => {
const initScripts = () => {
loadTwitter();
processInstagram();
};

exports.onInitialClientRender = initScripts;
exports.onRouteUpdate = initScripts;

0 comments on commit cd3ea90

Please sign in to comment.