[Pkg-mozext-commits] [adblock-plus] 20/87: Issue 3704 - Consider Edge a seperate platform in the generated "info" module

David Prévot taffit at moszumanska.debian.org
Sat Apr 30 17:59:04 UTC 2016


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

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

commit a5dd26f89ff2cc21d46529f0f22772f71f07af99
Author: Sebastian Noack <sebastian at adblockplus.org>
Date:   Thu Mar 3 13:44:56 2016 +0100

    Issue 3704 - Consider Edge a seperate platform in the generated "info" module
---
 chromeInfo.js.tmpl | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/chromeInfo.js.tmpl b/chromeInfo.js.tmpl
index 197da7b..b2ad41c 100644
--- a/chromeInfo.js.tmpl
+++ b/chromeInfo.js.tmpl
@@ -2,7 +2,10 @@
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
+"use strict";
+
 (function() {
+  var platform = "chromium";
   var platformVersion = null;
   var application = null;
   var applicationVersion;
@@ -19,6 +22,13 @@
     {
       platformVersion = ver;
     }
+    else if (app == "Edge")
+    {
+      platform = "edgehtml";
+      platformVersion = ver;
+      application = "edge";
+      applicationVersion = "0";
+    }
     else if (app != "Mozilla" && app != "AppleWebKit" && app != "Safari")
     {
       // For compatibility with legacy websites, Chrome's UA
@@ -50,7 +60,7 @@
     application: application,
     applicationVersion: applicationVersion,
 
-    platform: "chromium",
+    platform: platform,
     platformVersion: platformVersion
   };
 })();

-- 
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