From 3a0cb3d7f1dfabd931931f1855ffbcbd580309ab Mon Sep 17 00:00:00 2001 From: make-ing Date: Tue, 2 Aug 2016 10:28:39 +0200 Subject: [PATCH] fixed #81 Firefox add design bug --- src/octoprint/plugins/svgtogcode/static/js/working_area.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/octoprint/plugins/svgtogcode/static/js/working_area.js b/src/octoprint/plugins/svgtogcode/static/js/working_area.js index 79cc1685..a32be532 100644 --- a/src/octoprint/plugins/svgtogcode/static/js/working_area.js +++ b/src/octoprint/plugins/svgtogcode/static/js/working_area.js @@ -273,7 +273,7 @@ $(function(){ } // find Illustrator comment and notify - f.node.childNodes.forEach(function(entry) { + Array.from(f.node.childNodes).forEach(function(entry) { if(entry.nodeType == 8) { // Nodetype 8 = comment if(entry.textContent.indexOf('Illustrator') > -1) { new PNotify({title: gettext("Illustrator SVG Detected"), text: "Illustrator SVG detected! To preserve coorect scale, please go to the \'Settings\' menu and change the \'SVG dpi\' field under \'Plugins/Svg Conversion\' according to your file. And add it again.", type: "info", hide: false});