Better Kiwix Serve Taskbar insertion (after charset definition)

This commit is contained in:
Emmanuel Engelhart committed 2021-01-18 11:18:53 +01:00
1 parent a61c94ef10
commit a8bf9dd5b4
3 files changed
+24 -2

No files matched your search

+2 -2
View File
@@ -203,9 +203,9 @@ void ContentResponse::introduce_taskbar()
data.set("title", m_bookTitle);
data.set("withlibrarybutton", m_withLibraryButton);
auto head_content = render_template(RESOURCE::templates::head_part_html, data);
m_content = appendToFirstOccurence(
m_content = prependToFirstOccurence(
m_content,
"<head[^>]*>",
"</head[^>]*>",
head_content);
auto taskbar_part = render_template(RESOURCE::templates::taskbar_part_html, data);