mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-24 12:06:15 +01: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 {
|
||||
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 isFirefoxOnAndroid: boolean = navigator.userAgent.indexOf('Firefox/') !== -1 &&
|
||||
navigator.userAgent.indexOf('Android') !== -1;
|
||||
|
Loading…
Reference in New Issue
Block a user