Skip to content

Commit

Permalink
Fix unsupported method in IE (#1573)
Browse files Browse the repository at this point in the history
* Fix unsupported method in IE

* Fix formatting
  • Loading branch information
variadicintegrity authored and KyleAMathews committed Jul 20, 2017
1 parent adedf93 commit 41c75b2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/gatsby/src/cache-dir/root.js
Expand Up @@ -53,7 +53,13 @@ function shouldUpdateScroll(prevRouterProps, { location: { pathname } }) {
return true
}

const noMatch = pages.find(r => r.path === `/dev-404-page/`)
let noMatch
for (let i = 0; i < paths.length; i++) {
if (paths[i].path === `/dev-404-page/`) {
noMatch = paths[i]
break
}
}

const addNotFoundRoute = () => {
if (noMatch) {
Expand Down

0 comments on commit 41c75b2

Please sign in to comment.