diff --git a/src/js/utils/browser.js b/src/js/utils/browser.js index 9a993cdadc..e85ee4f9e7 100644 --- a/src/js/utils/browser.js +++ b/src/js/utils/browser.js @@ -140,6 +140,22 @@ export let IS_IPAD = false; // http://artsy.github.io/blog/2012/10/18/the-perils-of-ios-user-agent-sniffing/ export let IS_IPHONE = false; +/** + * Whether or not this is a Tizen device. + * + * @static + * @type {Boolean} + */ +export let IS_TIZEN = false; + +/** + * Whether or not this is a WebOS device. + * + * @static + * @type {Boolean} + */ +export let IS_WEBOS = false; + /** * Whether or not this device is touch-enabled. * @@ -235,7 +251,11 @@ if (!IS_CHROMIUM) { return version; }()); - IS_SAFARI = (/Safari/i).test(USER_AGENT) && !IS_CHROME && !IS_ANDROID && !IS_EDGE; + IS_TIZEN = (/Tizen/i).test(USER_AGENT); + + IS_WEBOS = (/Web0S/i).test(USER_AGENT); + + IS_SAFARI = (/Safari/i).test(USER_AGENT) && !IS_CHROME && !IS_ANDROID && !IS_EDGE && !IS_TIZEN && !IS_WEBOS; IS_WINDOWS = (/Windows/i).test(USER_AGENT);