Skip to content

Commit

Permalink
Change window title to LX Music
Browse files Browse the repository at this point in the history
  • Loading branch information
3gf8jv4dv committed Jan 30, 2025
1 parent 68b32a2 commit 6ecee3b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/common/utils/renderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ export const scrollXRTo = (element: ScrollElement<HTMLElement>, to: number, dura
*/
let dom_title = document.getElementsByTagName('title')[0]
export const setTitle = (title: string | null) => {
title ||= '洛雪音乐助手'
title ||= 'LX Music'
dom_title.innerText = title
}

2 changes: 1 addition & 1 deletion src/renderer-lyric/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>桌面歌词-洛雪音乐助手</title>
<title>Lyric - LX Music</title>
</head>
<body id="body" style="background-color: transparent;">
<div id="root"></div>
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>洛雪音乐助手</title>
<title>LX Music</title>
</head>
<body id="body" style="background-color: transparent;">
<!-- <div id="waiting-mask">
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export const dateFormat2 = (time: number): string => {
*/
let dom_title = document.getElementsByTagName('title')[0]
export const setTitle = (title: string | null) => {
title ||= '洛雪音乐助手'
title ||= 'LX Music'
dom_title.innerText = title
}

Expand Down

0 comments on commit 6ecee3b

Please sign in to comment.