Make it work (as well as it may) in Edge

This commit is contained in:
Felipe Gasper
2017-10-03 23:16:12 -04:00
parent 4c4c392479
commit 0e732a7d41
6 changed files with 19 additions and 5 deletions
+5 -3
View File
@@ -168,10 +168,12 @@ function _handle_receive_session(zsession) {
var offer_form = document.getElementById("zm_offer");
offer_form.style.display = "";
offer_form.onsubmit = function(e) {
offer_form.style.display = "none";
var the_form = e.currentTarget;
the_form.style.display = "none";
//START
if (offer_form.zmaccept.value) {
//if (offer_form.zmaccept.value) {
if (document.getElementById("zmaccept_yes").checked) {
var FILE_BUFFER = [];
xfer.on("input", (payload) => {
_update_progress(xfer);
@@ -259,7 +261,7 @@ var zsentry = new Zmodem.Sentry( {
start_form.onsubmit = function(e) {
start_form.style.display = "none";
if (e.currentTarget.zmstart.value) {
if (document.getElementById("zmstart_yes").checked) {
let zsession = detection.confirm();
current_zsession = zsession;