Index: templates/chromeInfo.js.tmpl |
=================================================================== |
--- a/templates/chromeInfo.js.tmpl |
+++ b/templates/chromeInfo.js.tmpl |
@@ -11,29 +11,19 @@ |
let regexp = /(\S+)\/(\S+)(?:\s*\(.*?\))?/g; |
let match; |
while (match = regexp.exec(navigator.userAgent)) |
{ |
let app = match[1]; |
let ver = match[2]; |
+ platformVersion = ver; |
- if (app == "Chrome") |
Sebastian Noack
2017/06/07 11:14:13
This part is still relevant on Chrome, only the ap
Jon Sonesen
2017/06/07 11:41:38
Acknowledged.
|
- { |
- platformVersion = ver; |
- } |
- else if (app == "Edge") |
- { |
- platform = "edgehtml"; |
- platformVersion = ver; |
- application = "edge"; |
- applicationVersion = "0"; |
- } |
- else if (app != "Mozilla" && app != "AppleWebKit" && app != "Safari") |
+ if (app != "Mozilla" && app != "AppleWebKit" && app != "Safari") |
{ |
// For compatibility with legacy websites, Chrome's UA |
// also includes a Mozilla, AppleWebKit and Safari token. |
// Any further name/version pair indicates a fork. |
application = app == "OPR" ? "opera" : app.toLowerCase(); |
applicationVersion = ver; |
} |
} |