Skip to content

Commit

Permalink
Change default
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleAMathews committed Jan 15, 2018
1 parent ed3969b commit a07893d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/gatsby-plugin-nprogress/src/gatsby-browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import NProgress from "nprogress"

const defaultOptions = { color: `#29d` }

exports.onClientEntry = (a, pluginOptions = defaultOptions) => {
// 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`
const options = { ...defaultOptions, ...pluginOptions }

window.___emitter.on(`onDelayedLoadPageResources`, () => {
Expand Down

0 comments on commit a07893d

Please sign in to comment.