Epiphany version returned.

Basing the Epiphany version of UserAgant name - for want of a better
way of determining this at this stage.

    modified:   core/main/client/browser.js
This commit is contained in:
Bucky Wilson
2018-01-06 12:37:52 +10:00
parent 86c3212e2e
commit 628ddb8dc2

View File

@@ -2317,6 +2317,18 @@ beef.browser = {
}
; // Microsoft Edge
if (this.isEpi()) {
// beleive the UserAgent string - until whenever
var epiphanyRe = /Epiphany\/(\d+)/;
var versionDetails = epiphanyRe.exec( beef.browser.getBrowserReportedName());
if (versionDetails.length > 1) {
return versionDetails[1];
} else {
return "UNKNOWN";
}
}
; // Epihany
if (this.isS4()) {
return '4'
}