mirror of
https://github.com/zhigang1992/mitmproxy.git
synced 2026-04-23 11:56:52 +08:00
fix default websocket state
This commit is contained in:
@@ -3,7 +3,7 @@ const DISCONNECTED = 'WEBSOCKET_DISCONNECTED'
|
||||
|
||||
|
||||
const defaultState = {
|
||||
connected: true,
|
||||
connected: false,
|
||||
/* we may want to have an error message attribute here at some point */
|
||||
}
|
||||
export default function reducer(state = defaultState, action) {
|
||||
@@ -27,4 +27,4 @@ export function connected() {
|
||||
}
|
||||
export function disconnected() {
|
||||
return {type: DISCONNECTED}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user