diff --git a/CHANGELOG.md b/CHANGELOG.md index 15ea258..dd29217 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # Bowser Changelog +### 1.4.1 (July 7, 2016) + +- [FIX] Fix `strictMode` logic for `isUnsupportedBrowser` ### 1.4.0 (June 28, 2016) diff --git a/bower.json b/bower.json index b68f116..6dee789 100644 --- a/bower.json +++ b/bower.json @@ -7,7 +7,7 @@ "sniff", "detection" ], - "version": "1.3.0", + "version": "1.4.1", "homepage": "https://github.com/ded/bowser", "scripts": [ "src/bowser.js" diff --git a/package.json b/package.json index aabb3c6..c60442c 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "sniff", "detection" ], - "version": "1.4.0", + "version": "1.4.1", "homepage": "https://github.com/ded/bowser", "author": "Dustin Diaz (http://dustindiaz.com)", "main": "./src/bowser.js", diff --git a/src/bowser.js b/src/bowser.js index efebf7d..49cb903 100644 --- a/src/bowser.js +++ b/src/bowser.js @@ -529,9 +529,7 @@ } } - if (strictMode) { - return false; // not found - } + return strictMode; // not found } /** @@ -539,6 +537,7 @@ * * @param {Object} minVersions map of minimal version to browser * @param {Boolean} [strictMode = false] flag to return false if browser wasn't found in map + * @param {String} [ua] user agent string * @return {Boolean} */ function check(minVersions, strictMode, ua) {