mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 16:43:55 +00:00
fix: No need to use process.client here
This commit is contained in:
parent
0eb928eba9
commit
be5e0571ab
@ -140,7 +140,7 @@ async function loadAsyncComponents (to, from, next) {
|
||||
next()
|
||||
} catch (err) {
|
||||
err = err || {}
|
||||
if (/^Loading chunk (\d)+ failed\./.test(err.message) && process.client) {
|
||||
if (/^Loading chunk (\d)+ failed\./.test(err.message)) {
|
||||
window.location.replace(location.href)
|
||||
}
|
||||
const statusCode = (err.statusCode || err.status || (err.response && err.response.status) || 500)
|
||||
|
Loading…
Reference in New Issue
Block a user