diff --git a/demo/index.html b/demo/index.html
index cbcc8043..492dca1b 100644
--- a/demo/index.html
+++ b/demo/index.html
@@ -14,16 +14,6 @@
-
-
-
-
-
-
-
-
-
-
xterm.js: xterm, in the browser
diff --git a/demo/main.js b/demo/main.js
index f67c66d8..017a3127 100644
--- a/demo/main.js
+++ b/demo/main.js
@@ -178,15 +178,15 @@ function _handle_receive_session(zsession) {
FILE_BUFFER.push( new Uint8Array(payload) );
});
xfer.accept().then(
- () => { _save_to_disk(xfer, FILE_BUFFER); },
+ () => {
+ _hide_file_info();
+ _hide_progress();
+ _save_to_disk(xfer, FILE_BUFFER);
+ },
console.error.bind(console)
- ).then( () => {
- _hide_file_info();
- _hide_progress();
- } );
+ );
}
else {
- _hide_file_info();
xfer.skip();
}
//END
@@ -217,12 +217,16 @@ function _handle_send_session(zsession) {
},
on_file_complete(obj) {
console.log("COMPLETE", obj);
+ _hide_progress();
},
}
).then(_hide_progress).then(
zsession.close.bind(zsession),
console.error.bind(console)
- );
+ ).then( () => {
+ _hide_file_info();
+ _hide_progress();
+ } );
};
}
diff --git a/demo/zmodemjs b/demo/zmodemjs
index 58be89b5..5b37c522 160000
--- a/demo/zmodemjs
+++ b/demo/zmodemjs
@@ -1 +1 @@
-Subproject commit 58be89b58077fe66c07194b4af6997ae2333a725
+Subproject commit 5b37c522c0fc989d257dffd3279f33902f148ab6