Skip to content

Commit

Permalink
Update gatsby-browser.js
Browse files Browse the repository at this point in the history
  • Loading branch information
stevector authored Dec 18, 2024
1 parent e124163 commit fd770c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gatsby-browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@ export const onRouteUpdate = () => {
//console.log("Title: ", document.title) //For debugging
}

// Trigger resize event once rendered
// Trigger resize event once rendered.
export const onInitialClientRender = () => {
window.dispatchEvent(new Event("resize"))
}

// Global context providers
// Global context providers.
export const wrapRootElement = ({ element }) => {
return <GlobalWrapper mobileMenuMaxWidth={MOBILE_MENU_BREAKPOINT}>{element}</GlobalWrapper>
}

0 comments on commit fd770c6

Please sign in to comment.