Skip to content

Commit 040c337

Browse files
committed
npm & theme updates
1 parent 98bec12 commit 040c337

File tree

7 files changed

+432
-348
lines changed

7 files changed

+432
-348
lines changed

gatsby-browser.js

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -8,40 +8,40 @@
88
// use initialized flag to ensure that window.onGatsbyPreRouteUpdate() and
99
// window.onGatsbyRouteUpdate() will not be called before
1010
// window.onGatsbyInitialClientRender() has run
11-
let initialized = false;
11+
let initialized = false
1212

1313
exports.onInitialClientRender = () => {
14-
initialized = true;
15-
if (
16-
"onGatsbyInitialClientRender" in window &&
17-
typeof window.onGatsbyInitialClientRender === "function"
18-
) {
19-
window.onGatsbyInitialClientRender();
20-
}
21-
if (
22-
"onGatsbyRouteUpdate" in window &&
23-
typeof window.onGatsbyRouteUpdate === "function"
24-
) {
25-
window.onGatsbyRouteUpdate();
26-
}
27-
};
14+
initialized = true
15+
if (
16+
'onGatsbyInitialClientRender' in window &&
17+
typeof window.onGatsbyInitialClientRender === 'function'
18+
) {
19+
window.onGatsbyInitialClientRender()
20+
}
21+
if (
22+
'onGatsbyRouteUpdate' in window &&
23+
typeof window.onGatsbyRouteUpdate === 'function'
24+
) {
25+
window.onGatsbyRouteUpdate()
26+
}
27+
}
2828

2929
exports.onRouteUpdate = () => {
30-
if (
31-
initialized &&
32-
"onGatsbyRouteUpdate" in window &&
33-
typeof window.onGatsbyRouteUpdate === "function"
34-
) {
35-
window.onGatsbyRouteUpdate();
36-
}
37-
};
30+
if (
31+
initialized &&
32+
'onGatsbyRouteUpdate' in window &&
33+
typeof window.onGatsbyRouteUpdate === 'function'
34+
) {
35+
window.onGatsbyRouteUpdate()
36+
}
37+
}
3838

3939
exports.onPreRouteUpdate = () => {
40-
if (
41-
initialized &&
42-
"onGatsbyPreRouteUpdate" in window &&
43-
typeof window.onGatsbyPreRouteUpdate === "function"
44-
) {
45-
window.onGatsbyPreRouteUpdate();
46-
}
47-
};
40+
if (
41+
initialized &&
42+
'onGatsbyPreRouteUpdate' in window &&
43+
typeof window.onGatsbyPreRouteUpdate === 'function'
44+
) {
45+
window.onGatsbyPreRouteUpdate()
46+
}
47+
}

gatsby-config.js

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,33 @@
1-
const siteMetadata = require("./site-metadata.json");
1+
const siteMetadata = require('./site-metadata.json')
22

33
module.exports = {
4-
pathPrefix: "/",
5-
siteMetadata: siteMetadata,
6-
plugins: [
7-
`gatsby-plugin-react-helmet`,
8-
`gatsby-source-data`,
9-
`gatsby-transformer-remark`,
10-
{
11-
resolve: `gatsby-source-filesystem`,
12-
options: {
13-
name: `pages`,
14-
path: `${__dirname}/src/pages`,
15-
},
16-
},
17-
{
18-
resolve: `gatsby-plugin-sass`,
19-
options: {},
20-
},
21-
{
22-
resolve: `gatsby-remark-page-creator`,
23-
options: {},
24-
},
25-
{
26-
resolve: `@stackbit/gatsby-plugin-menus`,
27-
options: {
28-
sourceUrlPath: `fields.url`,
29-
pageContextProperty: `menus`,
30-
},
31-
},
32-
],
33-
};
4+
pathPrefix: '/',
5+
siteMetadata: siteMetadata,
6+
plugins: [
7+
`gatsby-plugin-react-helmet`,
8+
`gatsby-source-data`,
9+
`gatsby-transformer-remark`,
10+
{
11+
resolve: `gatsby-source-filesystem`,
12+
options: {
13+
name: `pages`,
14+
path: `${__dirname}/src/pages`,
15+
},
16+
},
17+
{
18+
resolve: `gatsby-plugin-sass`,
19+
options: {},
20+
},
21+
{
22+
resolve: `gatsby-remark-page-creator`,
23+
options: {},
24+
},
25+
{
26+
resolve: `@stackbit/gatsby-plugin-menus`,
27+
options: {
28+
sourceUrlPath: `fields.url`,
29+
pageContextProperty: `menus`,
30+
},
31+
},
32+
],
33+
}

0 commit comments

Comments
 (0)