{"size": 921, "ext": "js", "max_stars_repo_path": "gatsby-browser.js", "max_stars_repo_name": "finmoorhouse/podcast", "max_stars_repo_stars_event_min_datetime": "2020-02-07T17:32:59.000Z", "max_stars_repo_stars_event_max_datetime": "2020-05-04T17:40:54.000Z", "max_issues_repo_path": "gatsby-browser.js", "max_issues_repo_name": "finmoorhouse/podcast", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "gatsby-browser.js", "max_forks_repo_name": "finmoorhouse/podcast", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 2, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 27.0882352941, "max_line_length": 105, "alphanum_fraction": 0.6134636265}
/**
 * Implement Gatsby's Browser APIs in this file.
 *
 * See: https://www.gatsbyjs.org/docs/browser-apis/
 */

// You can delete this file if you're not using it
// exports.onRouteUpdate = () => {
//     
// }

// exports.onRouteUpdate = ({ location }) => scroll(location)

// // function that helps with remembering scroll history, continue reading where you left off

// const scroll = (location) => {
//     const item = document.querySelectorAll(`a[href='${location.hash}']`)
//     // const linked = location.hash; 

//     let Position = null
//     if (item) {
//         Position = item.offsetTop;
//     }
//     window.scrollTo({top: item.offsetTop,
//     behavior: "smooth"});
// }

// /**
//  *
//  * @desc - a function to jump to the correct scroll position
//  * @param {Object} location -
//  * @param {Number} [mainNavHeight] - the height of any persistent nav -> document.querySelector(`nav`)
//  */
 