Less scary message with Ctrl-C, remove gcode viewer for android
This commit is contained in:
1 parent
076c6764a0
commit
4581722bbe
2 files changed
+7
No files matched your search
@@ -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:")
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user