diff options
author | wolfbeast <mcwerewolf@gmail.com> | 2018-06-06 17:00:21 +0200 |
---|---|---|
committer | wolfbeast <mcwerewolf@gmail.com> | 2018-06-06 17:00:21 +0200 |
commit | a3a78d42f2f2f1df3528c389819a0c767a9f4552 (patch) | |
tree | cc48fd6e67fe53f4c4974a1b04af2217ce9f6546 | |
parent | fde9b452139c9fa7cee2ceac6ecf9745af4f36ef (diff) | |
download | uxp-a3a78d42f2f2f1df3528c389819a0c767a9f4552.tar.gz |
Fix for loop in Sync quota dialog.
-rw-r--r-- | application/palemoon/base/content/sync/quota.js | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/application/palemoon/base/content/sync/quota.js b/application/palemoon/base/content/sync/quota.js index 4540527548..a42fbc7228 100644 --- a/application/palemoon/base/content/sync/quota.js +++ b/application/palemoon/base/content/sync/quota.js @@ -193,10 +193,15 @@ var gUsageTreeView = { return; } - toremove = [this._byname[coll].title for each (coll in toremove)]; - toremove = toremove.join(gSyncQuota.bundle.getString("quota.list.separator")); + // Tycho: toremove = [this._byname[coll].title for each (coll in toremove)]; + let toremovetitles = []; + for (let coll in toremove) { + toremovetitles.push(this._byname[coll].title); + } + + toremovetitles = toremovetitles.join(gSyncQuota.bundle.getString("quota.list.separator")); caption.firstChild.nodeValue = gSyncQuota.bundle.getFormattedString( - "quota.removal.label", [toremove]); + "quota.removal.label", [toremovetitles]); if (freeup) caption.firstChild.nodeValue += gSyncQuota.bundle.getFormattedString( "quota.freeup.label", gSyncQuota.convertKB(freeup)); |