is safari check

This commit is contained in:
Kyle Spearrin 2018-09-14 08:07:55 -04:00
parent 7dc14a0d18
commit 2fadcb8d04
1 changed files with 1 additions and 3 deletions

View File

@ -8,8 +8,6 @@ import { Utils } from '../misc/utils';
import { DecryptParameters } from '../models/domain/decryptParameters';
import { SymmetricCryptoKey } from '../models/domain/symmetricCryptoKey';
import { DeviceType } from '../enums/deviceType';
export class WebCryptoFunctionService implements CryptoFunctionService {
private crypto: Crypto;
private subtle: SubtleCrypto;
@ -23,7 +21,7 @@ export class WebCryptoFunctionService implements CryptoFunctionService {
this.isEdge = platformUtilsService.isEdge();
this.isIE = platformUtilsService.isIE();
const ua = win.navigator.userAgent;
this.isOldSafari = platformUtilsService.getDevice() === DeviceType.SafariBrowser &&
this.isOldSafari = platformUtilsService.isSafari() &&
(ua.indexOf(' Version/10.') > -1 || ua.indexOf(' Version/9.') > -1);
}