Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
luciobenini committed Feb 22, 2022
1 parent f8a04bb commit b843c06
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/gatsby-browser.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import consent from "./utils/consent"

export { wrapPageElement } from "./gatsby-browser"

export function wrapPageElement({ element, props: { navigate, location } }) {
consent(() => navigate(location.pathname))
return element
Expand Down
2 changes: 2 additions & 0 deletions src/gatsby-ssr.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import React from "react"

export { wrapPageElement } from "./gatsby-browser"

export function onRenderBody({ setHeadComponents }, { cookie, code, debug }) {
setHeadComponents([
<script
Expand Down

0 comments on commit b843c06

Please sign in to comment.