Skip to content

Commit

Permalink
Merge branch 'dev' into feat-nlink-prefetch
Browse files Browse the repository at this point in the history
  • Loading branch information
Sébastien Chopin committed Dec 28, 2018
2 parents e02001c + 3515115 commit 23d53fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/server/src/middleware/modern.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ const setModernMode = (req, options) => {
if (options.modern === 'server') {
req.modernMode = isModernBrowser
}
if (options.dev) {
req.devModernMode = options.modern && isModernBrowser
if (options.dev && !!options.modern) {
req.devModernMode = isModernBrowser
}
}

Expand Down

0 comments on commit 23d53fa

Please sign in to comment.