[Pkg-mozext-commits] [adblock-plus] 394/464: Expose more information about application and platform in the info pseudo-module

David Prévot taffit at moszumanska.debian.org
Tue Jul 22 20:44:37 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository adblock-plus.

commit 699f06fdb6c4807038641d54ead8c89acd94781f
Author: Wladimir Palant <trev at adblockplus.org>
Date:   Fri Jul 19 15:29:58 2013 +0200

    Expose more information about application and platform in the info pseudo-module
---
 bootstrap.js.tmpl | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/bootstrap.js.tmpl b/bootstrap.js.tmpl
index 72b2cf3..20eee9e 100644
--- a/bootstrap.js.tmpl
+++ b/bootstrap.js.tmpl
@@ -137,7 +137,7 @@ function require(module)
     if (module == "info")
     {
       let applications = {{applications|json}};
-      let appID = Services.appinfo.ID;
+      let appInfo = Services.appinfo;
 
       scopes[module] = {};
       scopes[module].exports =
@@ -146,7 +146,10 @@ function require(module)
         addonVersion: addonData.version,
         addonRoot: addonData.resourceURI.spec,
         addonName: "{{metadata.get('general', 'basename')}}",
-        application: (appID in applications ? applications[appID] : "other"),
+        application: (appInfo.ID in applications ? applications[appInfo.ID] : "other"),
+        applicationVersion: appInfo.version,
+        platform: "gecko",
+        platformVersion: appInfo.platformVersion
       };
     }
     else

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/adblock-plus.git



More information about the Pkg-mozext-commits mailing list