File tree Expand file tree Collapse file tree 2 files changed +1
-6
lines changed Expand file tree Collapse file tree 2 files changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ export default class ConnectionManager {
80
80
break ;
81
81
82
82
case "problem" :
83
- this . callbacks . on_problem ( { type : "protocol " , data } ) ;
83
+ this . callbacks . on_problem ( { type : "generic " , data : data . message } ) ;
84
84
break ;
85
85
}
86
86
}
Original file line number Diff line number Diff line change @@ -51,10 +51,6 @@ const FILE_HANDLER = new FileHandler();
51
51
case "generic" :
52
52
main . innerHTML = data ;
53
53
break ;
54
-
55
- case "protocol" :
56
- main . innerHTML = data . message ;
57
- break ;
58
54
}
59
55
if ( connection . websocket . readyState === WebSocket . OPEN ) {
60
56
connection . websocket . close ( 1000 , "The client is terminating this connection due to protocol error." ) ;
@@ -207,7 +203,6 @@ const FILE_HANDLER = new FileHandler();
207
203
}
208
204
}
209
205
) ;
210
- window . connection = connection ;
211
206
212
207
// Handle loading spinner
213
208
main . classList . add ( "loading" ) ;
You can’t perform that action at this time.
0 commit comments