Skip to content

Commit

Permalink
html: hide modal on ws close
Browse files Browse the repository at this point in the history
  • Loading branch information
tsl0922 committed May 16, 2019
1 parent 356d13f commit 3f21d86
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions html/js/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ let openWs = function() {

ws.onclose = function(event: CloseEvent) {
console.log('[ttyd] websocket closed, code: ' + event.code);
modal.hide();
if (term) {
term.resizeDisposable.dispose();
term.dataDisposable.dispose();
Expand Down
2 changes: 1 addition & 1 deletion src/index.html

Large diffs are not rendered by default.

0 comments on commit 3f21d86

Please sign in to comment.