From 3f1646682e97eb0db89e9ead0e4a16e68ad66a44 Mon Sep 17 00:00:00 2001 From: Eric Date: Sat, 4 Apr 2020 07:31:07 -0700 Subject: [PATCH] bug: leaflet css and js files from mesh hosts (#501) correct issue with the map on the setup page in PR #490 --- files/www/cgi-bin/setup | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/files/www/cgi-bin/setup b/files/www/cgi-bin/setup index fb4f1747..cb53ff42 100755 --- a/files/www/cgi-bin/setup +++ b/files/www/cgi-bin/setup @@ -543,8 +543,12 @@ my ($rc, $maptiles, $leafletcss, $leafletjs); http_header() unless $debug == 2; html_header(nvram_get("node") . " setup", 0); -print "\n" if $pingOk; -print "\n" if $pingOk; +if(($pingOk) || ($leafletcss =~ ".local.mesh")) { + print "\n"; +} +if(($pingOk) || ($leafletjs =~ ".local.mesh")) { + print "\n"; +} print ""; print "
\n";