Skip to content

Commit

Permalink
clean up some leftovers
Browse files Browse the repository at this point in the history
  • Loading branch information
iiPythonx committed Dec 14, 2024
1 parent f0c44ba commit e56f758
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion nightwatch/web/js/flows/connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export default class ConnectionManager {
break;

case "problem":
this.callbacks.on_problem({ type: "protocol", data });
this.callbacks.on_problem({ type: "generic", data: data.message });
break;
}
}
Expand Down
5 changes: 0 additions & 5 deletions nightwatch/web/js/nightwatch.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,6 @@ const FILE_HANDLER = new FileHandler();
case "generic":
main.innerHTML = data;
break;

case "protocol":
main.innerHTML = data.message;
break;
}
if (connection.websocket.readyState === WebSocket.OPEN) {
connection.websocket.close(1000, "The client is terminating this connection due to protocol error.");
Expand Down Expand Up @@ -207,7 +203,6 @@ const FILE_HANDLER = new FileHandler();
}
}
);
window.connection = connection;

// Handle loading spinner
main.classList.add("loading");
Expand Down

0 comments on commit e56f758

Please sign in to comment.