Ignore localhost URLs when trimming the URL in collapsed mode

This commit is contained in:
mr. m
2025-02-25 18:04:23 +01:00
parent cf6ed8c382
commit 6988060269

View File

@@ -220,6 +220,10 @@ var gZenUIManager = {
urlbarTrim(aURL) {
if (gZenVerticalTabsManager._hasSetSingleToolbar) {
let url = BrowserUIUtils.removeSingleTrailingSlashFromURL(aURL);
// ignore localstore
if (url.startsWith('http://localhost') || url.startsWith('https://localhost')) {
return url;
}
return url.startsWith('http://') || url.startsWith('https://') ? url.split('/')[2] : url;
}
return BrowserUIUtils.trimURL(aURL);