summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-06-09 07:55:51 +0200
committerjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-06-09 07:55:51 +0200
commitbc8718fedae474a5bbd67f00ef45a8c96f38607f (patch)
treeb70673f9e709839500dfcd7e8d627bd7fe51fc42
parentca8d6d0105ffaa618fab2d83feba2e35c9a607c5 (diff)
downloadUXP-bc8718fedae474a5bbd67f00ef45a8c96f38607f.tar
UXP-bc8718fedae474a5bbd67f00ef45a8c96f38607f.tar.gz
UXP-bc8718fedae474a5bbd67f00ef45a8c96f38607f.tar.lz
UXP-bc8718fedae474a5bbd67f00ef45a8c96f38607f.tar.xz
UXP-bc8718fedae474a5bbd67f00ef45a8c96f38607f.zip
[PALEMOON] Sync - fix quota.js (SyntaxError: missing ] after element list)
Issue #308
-rw-r--r--application/palemoon/base/content/sync/quota.js9
1 files changed, 8 insertions, 1 deletions
diff --git a/application/palemoon/base/content/sync/quota.js b/application/palemoon/base/content/sync/quota.js
index a42fbc722..1285a8d54 100644
--- a/application/palemoon/base/content/sync/quota.js
+++ b/application/palemoon/base/content/sync/quota.js
@@ -213,7 +213,14 @@ var gUsageTreeView = {
* disabled.
*/
getEnginesToDisable: function getEnginesToDisable() {
- return [coll.name for each (coll in this._collections) if (!coll.enabled)];
+ // Tycho: return [coll.name for each (coll in this._collections) if (!coll.enabled)];
+ let engines = [];
+ for each (let coll in this._collections) {
+ if (!coll.enabled) {
+ engines.push(coll.name);
+ }
+ }
+ return engines;
},
// nsITreeView