You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In projects that use MoOx/pjaw, title cannot get the correct title, only the page title that enters the website for the first time.
My current solution is to change the following code:
r,title:O(_)
Change to:
r,title:O(document.title)
I was worried that there might be other potential issues, so I didn't submit a pr. It seems that MoOx/pjaw may not have triggered the MutationObserver listening for title, resulting in the content in the variable_not being updated (possibly).
I don't know if there are any plans for adaptation and compatibility, but the MoOx/pjaw project is widely used in a large number of static blogs, a large number of themes, etc.
Describe the Bug
In projects that use MoOx/pjaw, title cannot get the correct title, only the page title that enters the website for the first time.
My current solution is to change the following code:
Change to:
I was worried that there might be other potential issues, so I didn't submit a pr. It seems that MoOx/pjaw may not have triggered the MutationObserver listening for title, resulting in the content in the variable_not being updated (possibly).
I don't know if there are any plans for adaptation and compatibility, but the MoOx/pjaw project is widely used in a large number of static blogs, a large number of themes, etc.
在使用了MoOx/pjax的项目中,title无法获取正确的标题,只能获取第一次进入网站的页面标题
我目前的解决方法是下面一段代码进行更改:
更改为:
我担心可能存在潜在的其他问题,所以没有提交pr。MoOx/pjax似乎可能没有触发MutationObserver监听title的事件,导致没有更新变量_中的内容(可能)。
不知道有没有做适配兼容的计划,MoOx/pjax项目被广泛应用于大量的静态博客、大量主题等。
Database
PostgreSQL
Relevant log output
No response
Which Umami version are you using? (if relevant)
No response
Which browser are you using? (if relevant)
Edge
How are you deploying your application? (if relevant)
Docker
The text was updated successfully, but these errors were encountered: