Skip to content

Commit 99f8303

Browse files
Update index.js
1 parent 6dd6500 commit 99f8303

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

js/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4679,7 +4679,7 @@ function updateTitle() {
46794679
if (typeof activeIslands !== 'undefined' && activeIslands.length > 0) {
46804680
activeIslands.forEach(i => {
46814681
if (i.type === 'live-activity' && i.data && i.data.text) {
4682-
liveActivityTexts.push(i.data.text);
4682+
liveActivityTexts.push(i.data.text.slice(0, 14));
46834683
}
46844684
});
46854685
}
@@ -4693,7 +4693,7 @@ function updateTitle() {
46934693
if (session && session.metadata) {
46944694
const { title, artist } = session.metadata;
46954695
if (title && title !== 'Unknown Title') {
4696-
titlePrefix = `${title} | `;
4696+
titlePrefix = `${title.slice(0, 14)} | `;
46974697
}
46984698
}
46994699
}
@@ -4704,7 +4704,7 @@ function updateTitle() {
47044704
const url = openEmbed.dataset.embedUrl;
47054705
const appName = Object.keys(apps).find(name => apps[name].url === url);
47064706
if (appName) {
4707-
titlePrefix = `${appName} | `;
4707+
titlePrefix = `${appName.slice(0, 14)} | `;
47084708
}
47094709
}
47104710
}

0 commit comments

Comments
 (0)