From a2c097a47ff5641761cc2089bd6bb2ec4d863f71 Mon Sep 17 00:00:00 2001 From: Bucky Wilson Date: Sun, 7 Jan 2018 15:22:21 +1000 Subject: [PATCH] Code review updates, speeling, and removed reliance on isS modified: core/main/client/browser.js --- core/main/client/browser.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/core/main/client/browser.js b/core/main/client/browser.js index dc4238e54..6f5200f7f 100644 --- a/core/main/client/browser.js +++ b/core/main/client/browser.js @@ -652,7 +652,7 @@ beef.browser = { */ isEpi: function () { // based on webkit -- therefore should look a bit like Safari - return this.isS() && window.navigator.userAgent.match(/Epiphany\//) != null; + return window.navigator.userAgent.match(/Epiphany\//) != null; }, @@ -2318,16 +2318,16 @@ beef.browser = { ; // Microsoft Edge if (this.isEpi()) { - // beleive the UserAgent string - until whenever + // believe the UserAgent string for version info - until whenever var epiphanyRe = /Epiphany\/(\d+)/; var versionDetails = epiphanyRe.exec( beef.browser.getBrowserReportedName()); if (versionDetails.length > 1) { return versionDetails[1]; } else { - return "UNKNOWN"; + return "UNKNOWN"; // returns from here or it may take Safari version details } } - ; // Epihany + ; // Epiphany if (this.isS4()) { return '4' @@ -2406,7 +2406,7 @@ beef.browser = { if (this.isEpi()) { return 'EP' } - ; // Ephipany any version + ; // Epiphany any version if (this.isS()) { return 'S' }