Skip to content

Commit

Permalink
Added cosmetic tabs to inline injector
Browse files Browse the repository at this point in the history
  • Loading branch information
5cript committed Oct 21, 2023
1 parent b19e2a7 commit e9bfa9e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tools/inline_injector/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@ int main(int argc, char** argv)
std::filesystem::relative(index.parent_path() / ".." / "bin" / "index.js", index.parent_path());

const std::string importScriptsHtml = "\t<script type=\"module\" defer>\n\t\timport \"" +
relativeImportScriptsFile.generic_string() + "\";\n</script>\n";
relativeImportScriptsFile.generic_string() + "\";\n\t</script>\n";
const std::string importStylesHtml =
"\t<style>\n\t\t@import \"" + relativeImportStylesFile.generic_string() + "\";\n</style>\n";
"\t<style>\n\t\t@import \"" + relativeImportStylesFile.generic_string() + "\";\n\t</style>\n";
const std::string importBinIndexHtml =
"\t<script type=\"module\" defer>\n\t\timport \"" + binIndex.generic_string() + "\";\n</script>\n";
"\t<script type=\"module\" defer>\n\t\timport \"" + binIndex.generic_string() + "\";\n\t</script>\n";

// find end of header </head> from behind in indexHtml:
const auto headEnd = indexHtml.rfind("</head>");
Expand Down

0 comments on commit e9bfa9e

Please sign in to comment.