Less scary message with Ctrl-C, remove gcode viewer for android

This commit is contained in:
James Gao 2013-10-08 18:37:56 -07:00
parent 076c6764a0
commit 4581722bbe
2 changed files with 7 additions and 0 deletions

View file

@ -1207,6 +1207,8 @@ class Server():
printer.connect(port, baudrate)
try:
IOLoop.instance().start()
except KeyboardInterrupt:
logger.info("Goodbye!")
except:
logger.fatal("Now that is embarrassing... Something really really went wrong here. Please report this including the stacktrace below in OctoPrint's bugtracker. Thanks!")
logger.exception("Stacktrace follows:")

View file

@ -1,4 +1,9 @@
$(function() {
//Detect mobile browsers and remove gcode pane
//from http://stackoverflow.com/questions/3514784/what-is-the-best-way-to-detect-a-handheld-device-in-jquery
if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {
$("#gcode, a[href='#gcode']").remove();
}
//~~ Initialize view models
var loginStateViewModel = new LoginStateViewModel();