Fix recent app title display logic in TabHome (jesus take the wheel!)

This commit is contained in:
jelveh
2025-12-06 21:41:18 -08:00
parent 08599efd78
commit dc2f4953eb
+3 -2
View File
@@ -36,10 +36,11 @@ function buildRecentAppsHTML () {
h += `<div class="bento-recent-app" data-app-name="${html_encode(app_info.name)}">`;
h += `<img class="bento-recent-app-icon" src="${html_encode(app_info.icon || window.icons['app.svg'])}">`;
// if title is the same as name, then show the hostname of index_url
if ( app_info.name === app_info.title === app_info.uuid && app_info.index_url ) {
// if title, name and uuid are the same and index_url is set, then show the hostname of index_url
if ( app_info.name === app_info.title && app_info.name === app_info.uuid && app_info.index_url ) {
app_info.title = new URL(app_info.index_url).hostname;
}
h += `<span class="bento-recent-app-title">${html_encode(app_info.title)}</span>`;
h += '</div>';
}