From eecce139eaa15b3c4d7944dd586b11e150d5e5b6 Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Mon, 20 Jan 2020 22:35:36 +0100 Subject: 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. --- platform/javascript/export/export.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'platform/javascript/export/export.cpp') 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 &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"; -- cgit v1.2.3