Modern build, fixed WebSocket freezing on invalid URLs
This commit is contained in:
parent
307e434f91
commit
b8d68ee359
2 changed files with 4 additions and 2 deletions
|
|
@ -147,7 +147,9 @@ export default {
|
|||
}
|
||||
},
|
||||
disconnect() {
|
||||
this.socket.close()
|
||||
if (this.socket) {
|
||||
this.socket.close()
|
||||
}
|
||||
},
|
||||
handleError(error) {
|
||||
this.disconnect()
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
"build": "nuxt build",
|
||||
"start": "nuxt start",
|
||||
"pregenerate": "node build.js",
|
||||
"generate": "nuxt generate",
|
||||
"generate": "nuxt generate --modern",
|
||||
"pretty-quick": "pretty-quick --staged --pattern \"**/*.*(html|js|json|vue)\"",
|
||||
"test": "jest"
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue