feat: update document.title on navigation
This commit is contained in:
parent
4470a4252c
commit
d4ff337844
1 changed files with 3 additions and 0 deletions
|
@ -77,6 +77,9 @@ export function renderPost(responseText, url, postDivSelector: string, preventPu
|
|||
const submitBtn = document.getElementById('submit') as HTMLButtonElement;
|
||||
|
||||
|
||||
const title = html.querySelector('meta[property="cozy:title"]')?.getAttribute('content');
|
||||
document.title = `Cozy 🧸 | ${title}` || 'Cozy 🧸';
|
||||
|
||||
if(cozyUrl !== '/') {
|
||||
appUrl.value = cozyUrl || '';
|
||||
homeBtn.removeAttribute('disabled');
|
||||
|
|
Loading…
Reference in a new issue