Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix: wrong devMiddleware in non-modern dev mode
  • Loading branch information
clarkdo committed Dec 28, 2018
1 parent 197be14 commit 3515115
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/server/src/middleware/modern.js
Expand Up @@ -47,7 +47,7 @@ const setModernMode = (req, options) => {
if (options.modern === 'server') {
req.modernMode = isModernBrowser
}
if (options.dev) {
if (options.dev && !!options.modern) {
req.devModernMode = isModernBrowser
}
}
Expand Down

0 comments on commit 3515115

Please sign in to comment.