Add HTTP GET parameters "filename" that allow user tu specify a GCODE file that will be loaded automatically to gCodeViewer at startup.
The file have to be placed in "gcode" subdirectory.
Any attempt to escape from "gcode" subdirectory are blocked.
This is useful when you want to start gCodeViewer from other application.
Work well in Firefox.
Edge is tragically slow.
Example of use:
firefox.exe file:///C:/gCodeViewer/index.html?filename=test.gcode
Add HTTP GET parameters "filename" that allow user tu specify a GCODE file that will be loaded automatically to gCodeViewer at startup.
The file have to be placed in "gcode" subdirectory. Any attempt to escape from "gcode" subdirectory are blocked. This is useful when you want to start gCodeViewer from other application. Work well in Firefox. Edge is tragically slow.
Example of use: firefox.exe file:///C:/gCodeViewer/index.html?filename=test.gcode