mirror of
https://github.com/bitwarden/browser
synced 2025-12-14 15:23:33 +00:00
Remove Internet Explorer logic (#723)
This commit is contained in:
@@ -545,15 +545,8 @@ function testRsaGenerateKeyPair(length: 1024 | 2048 | 4096) {
|
||||
function getWebCryptoFunctionService() {
|
||||
const platformUtilsMock = Substitute.for<PlatformUtilsService>();
|
||||
platformUtilsMock.isEdge().mimicks(() => navigator.userAgent.indexOf(" Edg/") !== -1);
|
||||
platformUtilsMock
|
||||
.isIE()
|
||||
.mimicks(
|
||||
() =>
|
||||
navigator.userAgent.indexOf(" Edg/") === -1 &&
|
||||
navigator.userAgent.indexOf(" Trident/") !== -1
|
||||
);
|
||||
|
||||
return new WebCryptoFunctionService(window, platformUtilsMock);
|
||||
return new WebCryptoFunctionService(window);
|
||||
}
|
||||
|
||||
function makeStaticByteArray(length: number) {
|
||||
|
||||
Reference in New Issue
Block a user