We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed3969b commit a07893dCopy full SHA for a07893d
packages/gatsby-plugin-nprogress/src/gatsby-browser.js
@@ -2,8 +2,8 @@ import NProgress from "nprogress"
2
3
const defaultOptions = { color: `#29d` }
4
5
-exports.onClientEntry = (a, pluginOptions = defaultOptions) => {
6
- // Merge default options with user defined options via `gatsby-config.js`
+exports.onClientEntry = (a, pluginOptions = {}) => {
+ // Merge default options with user defined options in `gatsby-config.js`
7
const options = { ...defaultOptions, ...pluginOptions }
8
9
window.___emitter.on(`onDelayedLoadPageResources`, () => {
0 commit comments