Skip to content

Commit

Permalink
#2167 report exception stack to the server (if we have one), don't as…
Browse files Browse the repository at this point in the history
…sume that window.console exists (on IE it does not)

git-svn-id: https://xpra.org/svn/Xpra/trunk@21793 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Feb 22, 2019
1 parent 7bb51aa commit 6908d98
Show file tree
Hide file tree
Showing 5 changed files with 120 additions and 66 deletions.
12 changes: 8 additions & 4 deletions src/html5/index.html
Expand Up @@ -188,8 +188,12 @@ <h2>Xpra Bug Report</h2>
return false;
}

var cdebug = console.debug;
var clog = console.log;
var cdebug = function () {
Utilities.clog.apply(Utilities, arguments);
}
var clog = function () {
Utilities.clog.apply(Utilities, arguments);
}

if (!getboolparam("top_bar", true)) {
$("#top_bar").hide();
Expand Down Expand Up @@ -364,7 +368,7 @@ <h2>Xpra Bug Report</h2>
touchaction = "auto";
label = "scroll";
}
cdebug("set_touchaction() touchaction=", touchaction, "label=", label);
cdebug("mouse", "set_touchaction() touchaction=", touchaction, "label=", label);
$('div.window canvas').css("touch-action", touchaction);
$('#touchaction_link').html("Set Touch Action: "+label);
if (!Utilities.isEdge()) {
Expand Down Expand Up @@ -674,7 +678,7 @@ <h2>Xpra Bug Report</h2>
client.send(packet);
}
catch (e) {
client.error("input handling error: "+e);
client.exc(e, "input handling error");
}
}
});
Expand Down

0 comments on commit 6908d98

Please sign in to comment.