fix: update page title in inactive browser tabs#2383
Merged
meteyou merged 1 commit intomainsail-crew:developfrom Jan 11, 2026
Merged
fix: update page title in inactive browser tabs#2383meteyou merged 1 commit intomainsail-crew:developfrom
meteyou merged 1 commit intomainsail-crew:developfrom
Conversation
Signed-off-by: Stefan Dej <meteyou@gmail.com>
Contributor
There was a problem hiding this comment.
Pull request overview
This PR fixes a bug where browser tab titles fail to update when the tab is inactive, particularly in Firefox. The root cause is that vue-meta doesn't receive reactivity updates when browsers throttle JavaScript execution in background tabs. The solution removes vue-meta entirely and implements direct document.title manipulation via a Vue @Watch decorator, matching the existing pattern used for favicon updates.
Key Changes:
- Removed
vue-metadependency and its registration - Replaced
metaInfo()method with@Watch('title')decorator that directly setsdocument.title - Simplified the title getter to a single computed property
Reviewed changes
Copilot reviewed 3 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| package.json | Removed vue-meta dependency |
| package-lock.json | Removed vue-meta package and updated deepmerge to dev-only (still used by rollup) |
| src/main.ts | Removed vue-meta import and plugin registration |
| src/App.vue | Replaced metaInfo() with @Watch('title') for direct document.title assignment, removed Component.registerHooks call |
dw-0
approved these changes
Jan 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR fixes the page title not updating in inactive browser tabs (especially in Firefox). The issue was caused by
vue-metanot receiving reactivity updates when the browser throttles JavaScript execution in background tabs.The fix removes
vue-metaentirely and replaces it with a directdocument.titleassignment via a Vue@Watchdecorator. This approach is consistent with how the favicon is already updated and works reliably in inactive tabs.Changes:
vue-metadependency frompackage.jsonvue-metaimport and plugin registration frommain.tsmetaInfo()method with a@Watch('title')that setsdocument.titledirectly inApp.vueRelated Tickets & Documents
Mobile & Desktop Screenshots/Recordings
No visual changes - this fix affects the browser tab title behavior only.
[optional] Are there any post-deployment tasks we need to perform?
None