From 3160dca0b3ea24d57a039e66287c9d1ade75ccbf Mon Sep 17 00:00:00 2001 From: Bryan C Guner Date: Sun, 12 Jun 2022 09:46:40 -0400 Subject: [PATCH] js files --- gatsby-browser.jsx | 9 + gatsby-ssr.js | 8 +- package-lock.json | 19783 ------------------------------------------ static/js/files.md | 49 + static/js/inject.js | 2 +- 5 files changed, 62 insertions(+), 19789 deletions(-) create mode 100644 gatsby-browser.jsx delete mode 100644 package-lock.json create mode 100644 static/js/files.md diff --git a/gatsby-browser.jsx b/gatsby-browser.jsx new file mode 100644 index 0000000000..9c867a7d5e --- /dev/null +++ b/gatsby-browser.jsx @@ -0,0 +1,9 @@ +const React = require("react") +const Layout = require("./src/components/layout") +// Logs when the client route changes +exports.onRouteUpdate = ({ location, prevLocation }) => { + console.log("new pathname", location.pathname) + console.log("old pathname", prevLocation ? prevLocation.pathname : null) +} +// Wraps every page in a component +exports.wrapPageElement = ({ element, props }) => {{element} \ No newline at end of file diff --git a/gatsby-ssr.js b/gatsby-ssr.js index 0a30f1d6bb..f012ecd1b9 100644 --- a/gatsby-ssr.js +++ b/gatsby-ssr.js @@ -8,8 +8,8 @@ //