[Basilisk] [downloads] Stop using referrers as sources

This commit is contained in:
Moonchild 2020-09-23 01:27:02 +00:00 • committed by roytam1
commit f8c9d784db

View file

@ -247,8 +247,7 @@ this.DownloadsViewUI.DownloadElementShell.prototype = {
stateLabel = s.stateFailed; stateLabel = s.stateFailed;
} }
let referrer = this.download.source.referrer || this.download.source.url; let [displayHost, fullHost] = DownloadUtils.getURIHost(this.download.source.url);
let [displayHost, fullHost] = DownloadUtils.getURIHost(referrer);
let date = new Date(this.download.endTime); let date = new Date(this.download.endTime);
let [displayDate, fullDate] = DownloadUtils.getReadableDates(date); let [displayDate, fullDate] = DownloadUtils.getReadableDates(date);