mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-29 04:07:49 +02:00
Console: ensure externalcss is cleared if not available
This commit is contained in:
parent
98e41c2c05
commit
2cbb6cba26
1 changed files with 4 additions and 4 deletions
|
@ -425,17 +425,17 @@ namespace http {
|
||||||
std::ifstream f(styleFile, std::ifstream::binary);
|
std::ifstream f(styleFile, std::ifstream::binary);
|
||||||
s << f.rdbuf();
|
s << f.rdbuf();
|
||||||
externalCSS = s.str();
|
externalCSS = s.str();
|
||||||
|
} else if (externalCSS.length() != 0) { // clean up external style if file was removed
|
||||||
|
externalCSS = "";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void GetStyles (std::stringstream& s)
|
static void GetStyles (std::stringstream& s)
|
||||||
{
|
{
|
||||||
if (externalCSS.length() != 0) {
|
if (externalCSS.length() != 0)
|
||||||
s << "<style>\r\n" << externalCSS << "</style>\r\n";
|
s << "<style>\r\n" << externalCSS << "</style>\r\n";
|
||||||
} else {
|
else
|
||||||
s << internalCSS;
|
s << internalCSS;
|
||||||
externalCSS = "";
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const char HTTP_PAGE_TUNNEL_SUMMARY[] = "tunnel_summary";
|
const char HTTP_PAGE_TUNNEL_SUMMARY[] = "tunnel_summary";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue