From 2d3ec72e89a1130c5ec41613ca680236af2d74d9 Mon Sep 17 00:00:00 2001 From: svenson08 <> Date: Mon, 8 Jun 2015 19:55:33 +0000 Subject: [PATCH] Dashboard: Fix TabIcons (by Talkabout) git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@8718 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- www/pgm2/dashboard.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/pgm2/dashboard.js b/www/pgm2/dashboard.js index 4646fb3b3..8b181dc08 100644 --- a/www/pgm2/dashboard.js +++ b/www/pgm2/dashboard.js @@ -51,7 +51,7 @@ function dashboard_loadsvgIcon(svgIcon, svgColor, destObj) { //search Icon in ev if (!svgIcon.match('.svg')) {svgIcon = svgIcon+'.svg';} groupdata[i] = groupdata[i].replace('.',''); groupdata[i] = groupdata[i].replace('/opt/fhem',''); - dashboard_showsvgIcon(document.location.pathname+groupdata[i]+"/"+svgIcon, svgColor, destObj); + dashboard_showsvgIcon(document.location.pathname.replace(/\/+$/, '')+groupdata[i]+"/"+svgIcon, svgColor, destObj); } } }