Merge pull request #14570 from brvphoenix/decode

WebUI: Avoid decoding strings repeatedly
This commit is contained in:
Mike Tzou
2021-03-23 18:58:01 +08:00
committed by GitHub
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({