Skip to content

Commit adbf44f

Browse files
authored
web: patch html title with app_name (#2909)
1 parent 3409085 commit adbf44f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

sdk/python/packages/flet-runtime/src/flet_runtime/utils/patch_index.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,11 @@ def patch_index_html(
6565
r'<meta name="apple-mobile-web-app-title" content="{}">'.format(app_name),
6666
index,
6767
)
68+
index = re.sub(
69+
r"\<title>(.+)</title>",
70+
r"<title>{}</title>".format(app_name),
71+
index,
72+
)
6873
if app_description:
6974
index = re.sub(
7075
r"\<meta name=\"description\" content=\"(.+)\">",

0 commit comments

Comments
 (0)