mirror of
https://github.com/zen-browser/desktop.git
synced 2025-09-05 19:08:18 +00:00
Ignore localhost URLs when trimming the URL in collapsed mode
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user