clean up gatsby-browser
This commit is contained in:
parent
5916185c85
commit
b33cef7d4a
@ -7,12 +7,6 @@ const env =
|
|||||||
export const onRouteUpdate = function () {
|
export const onRouteUpdate = function () {
|
||||||
if (env === "production" && typeof window.plausible === "object") {
|
if (env === "production" && typeof window.plausible === "object") {
|
||||||
window.plausible("pageview");
|
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';
|
// import * as React from 'react';
|
||||||
@ -31,11 +25,11 @@ export const onRouteUpdate = function () {
|
|||||||
export const wrapRootElement = ({ element }) => (
|
export const wrapRootElement = ({ element }) => (
|
||||||
<SSRProvider>
|
<SSRProvider>
|
||||||
<Provider
|
<Provider
|
||||||
|
UNSAFE_className="overflow-x-hidden"
|
||||||
UNSAFE_style={{
|
UNSAFE_style={{
|
||||||
background: "unset",
|
background: "unset",
|
||||||
color: "unset",
|
color: "unset",
|
||||||
}}
|
}}
|
||||||
UNSAFE_className="overflow-x-hidden"
|
|
||||||
colorScheme="dark"
|
colorScheme="dark"
|
||||||
scale="medium"
|
scale="medium"
|
||||||
theme={darkTheme}
|
theme={darkTheme}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user