Merge pull request #335 from kiwix/fix_taskbar

attach taskbar to <head> instead of <head>\n
This commit is contained in:
Kelson 2020-04-03 16:56:55 +02:00 committed by GitHub
commit 375792a686
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -117,7 +117,7 @@ void Response::introduce_taskbar()
auto head_content = render_template(RESOURCE::templates::head_part_html, data);
m_content = appendToFirstOccurence(
m_content,
"<head>\n",
"<head>",
head_content);
auto taskbar_part = render_template(RESOURCE::templates::taskbar_part_html, data);
@ -135,7 +135,7 @@ void Response::inject_externallinks_blocker()
auto script_tag = render_template(RESOURCE::templates::external_blocker_part_html, data);
m_content = appendToFirstOccurence(
m_content,
"<head>\n",
"<head>",
script_tag);
}