mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-15 09:43:07 -07:00
parent
65dfec9acf
commit
c17d653544
2 changed files with 10 additions and 12 deletions
|
@ -135,8 +135,11 @@ const initializeWindows = function() {
|
|||
showDownloadPage = function(urls) {
|
||||
const id = 'downloadPage';
|
||||
let contentUrl = 'download.html';
|
||||
if (urls && urls.length)
|
||||
contentUrl += '?urls=' + urls.join("|");
|
||||
if (urls && (urls.length > 0)) {
|
||||
contentUrl += ('?urls=' + urls.map(function(url) {
|
||||
return encodeURIComponent(url);
|
||||
}).join("|"));
|
||||
}
|
||||
|
||||
new MochaUI.Window({
|
||||
id: id,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue