diff options
author | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-04-10 20:28:53 +0200 |
---|---|---|
committer | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-04-10 20:28:53 +0200 |
commit | 5fa956dfe4e8d7dc41365a5b67ff771e2588729e (patch) | |
tree | 05292731bbd685d209126780f779584e65d67169 /application/palemoon/base | |
parent | 9929aa7775f4ecee082c31cdd07a26992dba809f (diff) | |
download | UXP-5fa956dfe4e8d7dc41365a5b67ff771e2588729e.tar UXP-5fa956dfe4e8d7dc41365a5b67ff771e2588729e.tar.gz UXP-5fa956dfe4e8d7dc41365a5b67ff771e2588729e.tar.lz UXP-5fa956dfe4e8d7dc41365a5b67ff771e2588729e.tar.xz UXP-5fa956dfe4e8d7dc41365a5b67ff771e2588729e.zip |
[PALEMOON] "Page Info" - "Permissions": Fix - List of plugins
Issue #112
Diffstat (limited to 'application/palemoon/base')
-rw-r--r-- | application/palemoon/base/content/pageinfo/permissions.js | 31 |
1 files changed, 22 insertions, 9 deletions
diff --git a/application/palemoon/base/content/pageinfo/permissions.js b/application/palemoon/base/content/pageinfo/permissions.js index a4f7d5188..a152dcde1 100644 --- a/application/palemoon/base/content/pageinfo/permissions.js +++ b/application/palemoon/base/content/pageinfo/permissions.js @@ -362,20 +362,33 @@ function initPluginsRow() { } } - let entries = [ - { + // Tycho: + // let entries = [ + // { + // "permission": item[0], + // "obj": item[1], + // } + // for (item of permissionMap) + // ]; + let entries = []; + for (let item of permissionMap) { + entries.push({ "permission": item[0], - "obj": item[1], - } - for (item of permissionMap) - ]; + "obj": item[1] + }); + } entries.sort(function(a, b) { return ((a.obj.name < b.obj.name) ? -1 : (a.obj.name == b.obj.name ? 0 : 1)); }); - let permissionEntries = [ - fillInPluginPermissionTemplate(p.permission, p.obj) for (p of entries) - ]; + // Tycho: + // let permissionEntries = [ + // fillInPluginPermissionTemplate(p.permission, p.obj) for (p of entries) + // ]; + let permissionEntries = []; + entries.forEach(function (p) { + permissionEntries.push(fillInPluginPermissionTemplate(p.permission, p.obj)); + }); let permPluginsRow = document.getElementById("permPluginsRow"); clearPluginPermissionTemplate(); |