From 6fd0100bbbd75d3051a4ac655530c47f3f9af0b1 Mon Sep 17 00:00:00 2001 From: Ellert <> Date: Sat, 11 Feb 2023 23:04:14 +0000 Subject: [PATCH] automowerconnect.js: lineDash, split attribute to array git-svn-id: https://svn.fhem.de/fhem/trunk@27205 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/www/pgm2/automowerconnect.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fhem/www/pgm2/automowerconnect.js b/fhem/www/pgm2/automowerconnect.js index 469fe14f8..43786bd53 100644 --- a/fhem/www/pgm2/automowerconnect.js +++ b/fhem/www/pgm2/automowerconnect.js @@ -165,7 +165,7 @@ function AutomowerConnectDrawPath ( ctx, div, pos, type ) { ctx.beginPath(); ctx.strokeStyle = div.getAttribute( 'data-'+ type + 'LineColor' ); ctx.lineWidth=div.getAttribute( 'data-'+ type + 'LineWidth' ); - ctx.setLineDash([ div.getAttribute( 'data-'+ type + 'LineDash' ) ]); + ctx.setLineDash( div.getAttribute( 'data-'+ type + 'LineDash' ).split(",") ); ctx.moveTo(parseInt(pos[0]),parseInt(pos[1])); for (var i=2;i