mirror of
https://github.com/bitwarden/browser.git
synced 2024-08-25 23:03:07 +02:00
Fix isSafariApi in BrowserApi.
This commit is contained in:
parent
0f2c4b4a59
commit
35d1d5d723
|
@ -4,7 +4,7 @@ import { Utils } from 'jslib/misc/utils';
|
||||||
|
|
||||||
export class BrowserApi {
|
export class BrowserApi {
|
||||||
static isWebExtensionsApi: boolean = (typeof browser !== 'undefined');
|
static isWebExtensionsApi: boolean = (typeof browser !== 'undefined');
|
||||||
static isSafariApi: boolean = true;
|
static isSafariApi: boolean = navigator.userAgent.indexOf(' Safari/') !== -1;
|
||||||
static isChromeApi: boolean = !BrowserApi.isSafariApi && (typeof chrome !== 'undefined');
|
static isChromeApi: boolean = !BrowserApi.isSafariApi && (typeof chrome !== 'undefined');
|
||||||
static isFirefoxOnAndroid: boolean = navigator.userAgent.indexOf('Firefox/') !== -1 &&
|
static isFirefoxOnAndroid: boolean = navigator.userAgent.indexOf('Firefox/') !== -1 &&
|
||||||
navigator.userAgent.indexOf('Android') !== -1;
|
navigator.userAgent.indexOf('Android') !== -1;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user