mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-28 12:45:45 +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