diff --git a/src/octoprint/plugins/gcodeviewer/static/js/gcodeviewer.js b/src/octoprint/plugins/gcodeviewer/static/js/gcodeviewer.js index bb6adadfc..95b77f04b 100644 --- a/src/octoprint/plugins/gcodeviewer/static/js/gcodeviewer.js +++ b/src/octoprint/plugins/gcodeviewer/static/js/gcodeviewer.js @@ -522,10 +522,6 @@ $(function () { var findThis = self.settings.settings.plugins.gcodeviewer.skipUntilThis(); if (findThis && findThis !== "") { var indexPos = response.indexOf("\n" + findThis); - // Try windows newlines if not found - if (indexPos === -1) { - indexPos = response.indexOf("\r" + findThis); - } if (indexPos !== -1) { // Slice and make sure we comment out any string left back after slicing - so if a user configures something like "G1" we dont end up with a snippet of gcode commands // Yes it would be prettier to parse it line by line and remove the entire line, that is very slow and uses mem - this way we find the string, and remove it