Skip to content

Commit

Permalink
Merge pull request #48 from diekus/main
Browse files Browse the repository at this point in the history
fixed typo
  • Loading branch information
diekus authored Jan 27, 2025
2 parents 07c2d33 + 422b330 commit 09c2ed5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pwa-application-title/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@
const updateAppTitleBarText = () => {
const titleBarText = document.getElementById('txtTitleText');
const appTitleMetaTag = document.querySelector('[name="application-title"]');
appTitleMetaTag.setAttribute('content', titleBarText);
appTitleMetaTag.setAttribute('content', titleBarText.value);
}
</script>
<link rel="manifest" href="manifest.json" />
<meta name="application-title" content="">
<title>Title's tag text content</title>
</head>
<body>
<h1>application-title demo</h1>
<h1>Application</h1>

<form>
<label for="txtTitleText">Title bar content:</label>
Expand All @@ -50,7 +50,7 @@ <h1>application-title demo</h1>

<script>
const updateBtn = document.getElementById('btnUpdate');
updateBtn.addEventListener('click', updateAppTitleBarText());
updateBtn.addEventListener('click', updateAppTitleBarText);
</script>

</body>
Expand Down

0 comments on commit 09c2ed5

Please sign in to comment.