fix: wrong devMiddleware in non-modern dev mode

This commit is contained in:
Clark Du 2018-12-28 13:26:46 +00:00
parent 197be144ba
commit 35151150fd

View File

@ -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
}
}