mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-25 00:27:29 +09:00
[Pale-Moon] [downloads] Correct and simplify host handling.
This commit is contained in:
parent
30bcf6f347
commit
5465ff9914
1 changed files with 3 additions and 7 deletions
|
|
@ -80,20 +80,16 @@ this.DownloadsViewUI.DownloadElementShell.prototype = {
|
||||||
|
|
||||||
get extendedDisplayName() {
|
get extendedDisplayName() {
|
||||||
let s = DownloadsCommon.strings;
|
let s = DownloadsCommon.strings;
|
||||||
let [displayHost, fullHost] = DownloadUtils.getURIHost(this.download.source.url);
|
let displayHost = DownloadUtils.getURIHost(this.download.source.url);
|
||||||
return s.statusSeparator(this.displayName, displayHost);
|
return s.statusSeparator(this.displayName, displayHost);
|
||||||
},
|
},
|
||||||
|
|
||||||
get extendedDisplayNameTip() {
|
get extendedDisplayNameTip() {
|
||||||
let s = DownloadsCommon.strings;
|
let s = DownloadsCommon.strings;
|
||||||
|
let fullHost = DownloadUtils.getURIHost(this.download.source.url);
|
||||||
let referrer = this.download.source.referrer;
|
let referrer = this.download.source.referrer;
|
||||||
if (referrer) {
|
if (referrer) {
|
||||||
let [displayHost, fullHost] = DownloadUtils.getURIHost(this.download.source.url) +
|
fullHost += ' (' + DownloadUtils.getURIHost(referrer) + ')';
|
||||||
' (' +
|
|
||||||
DownloadUtils.getURIHost(referrer) +
|
|
||||||
')';
|
|
||||||
} else {
|
|
||||||
let [displayHost, fullHost] = DownloadUtils.getURIHost(this.download.source.url);
|
|
||||||
}
|
}
|
||||||
return s.statusSeparator(this.displayName, fullHost);
|
return s.statusSeparator(this.displayName, fullHost);
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue