WebUI: Avoid decoding strings repeatedly

Fix #14553
This commit is contained in:
brvphoenix 2021-03-19 01:27:36 -07:00
parent f6ab1d63e8
commit 5beb1b2cd0
10 changed files with 16 additions and 15 deletions

View file

@ -120,9 +120,9 @@ const initializeWindows = function() {
const id = 'downloadPage';
let contentUrl = 'download.html';
if (urls && (urls.length > 0)) {
contentUrl += ('?urls=' + urls.map(function(url) {
contentUrl += ('?urls=' + encodeURIComponent(urls.map(function(url) {
return encodeURIComponent(url);
}).join("|"));
}).join("|")));
}
new MochaUI.Window({