summaryrefslogtreecommitdiff
path: root/platform/web
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2023-01-13 18:03:15 +0100
committerRémi Verschelde <rverschelde@gmail.com>2023-01-13 18:03:15 +0100
commit8716c12eadc571b38bb571d4b7a3c781593a9b5b (patch)
tree144592c02a2921190e537feeedd32b561020fe67 /platform/web
parentef01b492275e2ebdc3769f3e4ffa925884c1e4b1 (diff)
parent6f0e210093dbd3f20bec34a4e60861dcceabd484 (diff)
Merge pull request #71325 from reduz/refactor-project-setting-overrides
Refactor ProjectSetting overrides
Diffstat (limited to 'platform/web')
-rw-r--r--platform/web/export/export_plugin.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/web/export/export_plugin.cpp b/platform/web/export/export_plugin.cpp
index 9c31ca1268..d8e04904c7 100644
--- a/platform/web/export/export_plugin.cpp
+++ b/platform/web/export/export_plugin.cpp
@@ -161,7 +161,7 @@ void EditorExportPlatformWeb::_fix_html(Vector<uint8_t> &p_html, const Ref<Edito
const String custom_head_include = p_preset->get("html/head_include");
HashMap<String, String> replaces;
replaces["$GODOT_URL"] = p_name + ".js";
- replaces["$GODOT_PROJECT_NAME"] = ProjectSettings::get_singleton()->get_setting("application/config/name");
+ replaces["$GODOT_PROJECT_NAME"] = GLOBAL_GET("application/config/name");
replaces["$GODOT_HEAD_INCLUDE"] = head_include + custom_head_include;
replaces["$GODOT_CONFIG"] = str_config;
_replace_strings(replaces, p_html);
@@ -201,7 +201,7 @@ Error EditorExportPlatformWeb::_add_manifest_icon(const String &p_path, const St
}
Error EditorExportPlatformWeb::_build_pwa(const Ref<EditorExportPreset> &p_preset, const String p_path, const Vector<SharedObject> &p_shared_objects) {
- String proj_name = ProjectSettings::get_singleton()->get_setting("application/config/name");
+ String proj_name = GLOBAL_GET("application/config/name");
if (proj_name.is_empty()) {
proj_name = "Godot Game";
}