mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-30 09:27:13 +00:00
fix: wrong devMiddleware in non-modern dev mode
This commit is contained in:
parent
197be144ba
commit
35151150fd
@ -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
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user