Merge pull request #35382 from Calinou/html5-export-title-tag
Set the `title` tag in the HTML5 export immediately
This commit is contained in:
commit
23b7670d32
3 changed files with 3 additions and 2 deletions
2
misc/dist/html/fixed-size.html
vendored
2
misc/dist/html/fixed-size.html
vendored
|
@ -3,7 +3,7 @@
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<link id='-gd-engine-icon' rel='icon' type='image/png' href='favicon.png' />
|
<link id='-gd-engine-icon' rel='icon' type='image/png' href='favicon.png' />
|
||||||
<title></title>
|
<title>$GODOT_PROJECT_NAME</title>
|
||||||
<style type="text/css">
|
<style type="text/css">
|
||||||
|
|
||||||
body {
|
body {
|
||||||
|
|
2
misc/dist/html/full-size.html
vendored
2
misc/dist/html/full-size.html
vendored
|
@ -4,7 +4,7 @@
|
||||||
<meta charset='utf-8' />
|
<meta charset='utf-8' />
|
||||||
<meta name='viewport' content='width=device-width, user-scalable=no' />
|
<meta name='viewport' content='width=device-width, user-scalable=no' />
|
||||||
<link id='-gd-engine-icon' rel='icon' type='image/png' href='favicon.png' />
|
<link id='-gd-engine-icon' rel='icon' type='image/png' href='favicon.png' />
|
||||||
<title></title>
|
<title>$GODOT_PROJECT_NAME</title>
|
||||||
<style type='text/css'>
|
<style type='text/css'>
|
||||||
|
|
||||||
body {
|
body {
|
||||||
|
|
|
@ -252,6 +252,7 @@ void EditorExportPlatformJavaScript::_fix_html(Vector<uint8_t> &p_html, const Re
|
||||||
|
|
||||||
String current_line = lines[i];
|
String current_line = lines[i];
|
||||||
current_line = current_line.replace("$GODOT_BASENAME", p_name);
|
current_line = current_line.replace("$GODOT_BASENAME", p_name);
|
||||||
|
current_line = current_line.replace("$GODOT_PROJECT_NAME", ProjectSettings::get_singleton()->get_setting("application/config/name"));
|
||||||
current_line = current_line.replace("$GODOT_HEAD_INCLUDE", p_preset->get("html/head_include"));
|
current_line = current_line.replace("$GODOT_HEAD_INCLUDE", p_preset->get("html/head_include"));
|
||||||
current_line = current_line.replace("$GODOT_DEBUG_ENABLED", p_debug ? "true" : "false");
|
current_line = current_line.replace("$GODOT_DEBUG_ENABLED", p_debug ? "true" : "false");
|
||||||
str_export += current_line + "\n";
|
str_export += current_line + "\n";
|
||||||
|
|
Loading…
Reference in a new issue