From a359785d21461e52281afe8b90499dcffd29e4d8 Mon Sep 17 00:00:00 2001 From: Stewart Allen Date: Wed, 14 Oct 2020 15:30:18 -0400 Subject: [PATCH] update undefined check --- src/mode/laser/driver.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mode/laser/driver.js b/src/mode/laser/driver.js index 7dcbea22..bd20dbf6 100644 --- a/src/mode/laser/driver.js +++ b/src/mode/laser/driver.js @@ -382,8 +382,8 @@ function(poly, color, thick) { let cout = colors[((color-1) % colors.length)]; let def = ["polyline"]; - if (z != undefined) def.push(`z="${z}"`); - if (thick != undefined) def.push(`h="${thick}"`); + if (z !== undefined) def.push(`z="${z}"`); + if (thick !== undefined) def.push(`h="${thick}"`); lines.push(`<${def.join(' ')} points="${poly.join(' ')}" fill="none" stroke="${cout}" stroke-width="0.1mm" />`); }, function() {