foosel/OctoPrint — pull request #276 by jamesgao (2013-10-09 01:47:00+00:00)
Title: Less scary message with Ctrl-C, remove gcode viewer for android

On all of the android devices I own, Octoprint crashes the browser very hard if there's a large gcode file being downloaded and parsed. Presumably, this is due to the relatively meager amount of memory. This makes controlling the printer using an older android tablet nearly impossible. This little snippet simply removes the gcode view if it detects a mobile browser.

I realize that this is a terrible solution in the off chance you have an Android device with multiple gigabytes of ram, but every android device I've tried from a brand new Moto X to a Nexus 10 tablet crashes with a big enough gcode file. Thoughts?