videomail-client 6.0.2 → 6.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/js/util/browser.js
CHANGED
|
@@ -23,6 +23,7 @@ const Browser = function (options) {
|
|
|
23
23
|
const isIOS = uaParser.os.name === 'iOS'
|
|
24
24
|
const browserVersion = parseFloat(uaParser.browser.version)
|
|
25
25
|
const isChrome = uaParser.browser.name === 'Chrome'
|
|
26
|
+
const isBrave = uaParser.browser.name === 'Brave'
|
|
26
27
|
const isChromium = uaParser.browser.name === 'Chromium'
|
|
27
28
|
const firefox = uaParser.browser.name === 'Firefox'
|
|
28
29
|
const osVersion = parseFloat(uaParser.os.version)
|
|
@@ -43,7 +44,14 @@ const Browser = function (options) {
|
|
|
43
44
|
const isHTTPS = options.fakeHttps || window.location.protocol === 'https:'
|
|
44
45
|
|
|
45
46
|
const okBrowser =
|
|
46
|
-
chromeBased ||
|
|
47
|
+
chromeBased ||
|
|
48
|
+
firefox ||
|
|
49
|
+
isAndroid ||
|
|
50
|
+
isOpera ||
|
|
51
|
+
isEdge ||
|
|
52
|
+
isOkSafari ||
|
|
53
|
+
isOkIOS ||
|
|
54
|
+
isBrave
|
|
47
55
|
|
|
48
56
|
const self = this
|
|
49
57
|
|