diff options
author | Hugo Locurcio <hugo.locurcio@hugo.pro> | 2020-01-20 22:35:36 +0100 |
---|---|---|
committer | Hugo Locurcio <hugo.locurcio@hugo.pro> | 2020-04-22 11:31:14 +0200 |
commit | eecce139eaa15b3c4d7944dd586b11e150d5e5b6 (patch) | |
tree | b65ed721bf9349c764e575e29f55286e2b09a886 /platform | |
parent | f989a43135ce42a43c35193b8eecefb055aec84c (diff) |
Set the `title` tag in the HTML5 export immediately
This makes the project title display without having to wait for
the project to finish loading.
Diffstat (limited to 'platform')
-rw-r--r-- | platform/javascript/export/export.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/platform/javascript/export/export.cpp b/platform/javascript/export/export.cpp index 39faae2d17..36076a2af9 100644 --- a/platform/javascript/export/export.cpp +++ b/platform/javascript/export/export.cpp @@ -252,6 +252,7 @@ void EditorExportPlatformJavaScript::_fix_html(Vector<uint8_t> &p_html, const Re String current_line = lines[i]; 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_DEBUG_ENABLED", p_debug ? "true" : "false"); str_export += current_line + "\n"; |