Skip to content

Commit

Permalink
fix: 离屏文字
Browse files Browse the repository at this point in the history
  • Loading branch information
nineya committed Mar 18, 2024
1 parent 6d27cad commit 463485c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/js/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,9 @@ const commonContext = {
} else {
document.title = DreamConfig.document_visible_title || originTitle
DreamConfig.document_visible_title && (timer = setTimeout(function () {
if(document.title === DreamConfig.document_visible_title){
document.title = originTitle
}
document.title = originTitle
}, 2000))
}
Expand Down
2 changes: 1 addition & 1 deletion templates/assets/js/common.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 463485c

Please sign in to comment.