1
0
mirror of https://github.com/ohwgiles/laminar.git synced 2026-10-18 00:54:25 +00:00

deprecate custom css

replaced by custom index html page
This commit is contained in:
Oliver Giles
2020-12-05 13:54:35 +13:00
parent 5e64844440
commit ec237f475e
3 changed files with 0 additions and 24 deletions

View File

@@ -826,16 +826,3 @@ R"x(
return true;
}
// TODO: deprecate
std::string Laminar::getCustomCss() {
KJ_IF_MAYBE(cssFile, fsHome->tryOpenFile(kj::Path{"custom","style.css"})) {
static bool warningShown = false;
if(!warningShown) {
LLOG(WARNING, "Custom CSS has been deprecated and will be removed from a future release. Use a custom HTML template instead.");
warningShown = true;
}
return (*cssFile)->readAllText().cStr();
} else {
return std::string();
}
}