1
0
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:
Hinton 2020-12-11 14:13:31 +01:00
parent 0f2c4b4a59
commit 35d1d5d723

View File

@ -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;