Skip to content

Commit e56f758

Browse files
committed
clean up some leftovers
1 parent f0c44ba commit e56f758

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

nightwatch/web/js/flows/connection.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ export default class ConnectionManager {
8080
break;
8181

8282
case "problem":
83-
this.callbacks.on_problem({ type: "protocol", data });
83+
this.callbacks.on_problem({ type: "generic", data: data.message });
8484
break;
8585
}
8686
}

nightwatch/web/js/nightwatch.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,6 @@ const FILE_HANDLER = new FileHandler();
5151
case "generic":
5252
main.innerHTML = data;
5353
break;
54-
55-
case "protocol":
56-
main.innerHTML = data.message;
57-
break;
5854
}
5955
if (connection.websocket.readyState === WebSocket.OPEN) {
6056
connection.websocket.close(1000, "The client is terminating this connection due to protocol error.");
@@ -207,7 +203,6 @@ const FILE_HANDLER = new FileHandler();
207203
}
208204
}
209205
);
210-
window.connection = connection;
211206

212207
// Handle loading spinner
213208
main.classList.add("loading");

0 commit comments

Comments
 (0)