clean up gatsby-browser

This commit is contained in:
Chuck Dries 2022-10-10 03:01:35 -07:00
parent 5916185c85
commit b33cef7d4a
No known key found for this signature in database
GPG Key ID: A00B7AEAE1DC5BE6

View File

@ -7,12 +7,6 @@ const env =
export const onRouteUpdate = function () {
if (env === "production" && typeof window.plausible === "object") {
window.plausible("pageview");
// eslint-disable-next-line
_paq.push(["setCustomUrl", "/" + window.location.pathname]);
// eslint-disable-next-line
_paq.push(["setDocumentTitle", document.title]);
// eslint-disable-next-line
_paq.push(["trackPageView"]);
}
};
// import * as React from 'react';
@ -31,11 +25,11 @@ export const onRouteUpdate = function () {
export const wrapRootElement = ({ element }) => (
<SSRProvider>
<Provider
UNSAFE_className="overflow-x-hidden"
UNSAFE_style={{
background: "unset",
color: "unset",
}}
UNSAFE_className="overflow-x-hidden"
colorScheme="dark"
scale="medium"
theme={darkTheme}