bug: leaflet css and js files from mesh hosts (#501)

correct issue with the map on the setup page in PR #490
This commit is contained in:
Eric 2020-04-04 07:31:07 -07:00 committed by GitHub
parent cdd1f8e96c
commit 3f1646682e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 2 deletions

View File

@ -543,8 +543,12 @@ my ($rc, $maptiles, $leafletcss, $leafletjs);
http_header() unless $debug == 2;
html_header(nvram_get("node") . " setup", 0);
print "<link rel='stylesheet' href='${leafletcss}' />\n" if $pingOk;
print "<script src='${leafletjs}'></script>\n" if $pingOk;
if(($pingOk) || ($leafletcss =~ ".local.mesh")) {
print "<link rel='stylesheet' href='${leafletcss}' />\n";
}
if(($pingOk) || ($leafletjs =~ ".local.mesh")) {
print "<script src='${leafletjs}'></script>\n";
}
print "</head>";
print "<body><center>\n";