diff --git a/src/app/global/mainController.js b/src/app/global/mainController.js index a05de34d64..2ea958933e 100644 --- a/src/app/global/mainController.js +++ b/src/app/global/mainController.js @@ -8,6 +8,7 @@ angular vm.usingControlSidebar = vm.openControlSidebar = false; vm.searchVaultText = null; vm.version = appSettings.version; + vm.outdatedBrowser = navigator.userAgent.indexOf('MSIE') !== -1; $scope.currentYear = new Date().getFullYear(); @@ -94,6 +95,10 @@ angular }); }; + $scope.updateBrowser = function () { + $window.open('https://browser-update.org/update.html', '_blank'); + }; + // Append dropdown menu somewhere else var bodyScrollbarWidth, appendedDropdownMenu, diff --git a/src/app/services/cryptoService.js b/src/app/services/cryptoService.js index 0ea18add08..345ec104db 100644 --- a/src/app/services/cryptoService.js +++ b/src/app/services/cryptoService.js @@ -235,7 +235,7 @@ angular }; _service.makeKey = function (password, salt) { - if (!$window.cryptoShimmed) { + if (!$window.cryptoShimmed && $window.navigator.userAgent.indexOf('Edge') === -1) { return pbkdf2WC(password, salt, 5000, 256).then(function (keyBuf) { return new SymmetricCryptoKey(bufToB64(keyBuf), true); }); @@ -301,7 +301,7 @@ angular throw 'Invalid parameters.'; } - if (!$window.cryptoShimmed) { + if (!$window.cryptoShimmed && $window.navigator.userAgent.indexOf('Edge') === -1) { var keyBuf = key.getBuffers(); return pbkdf2WC(new Uint8Array(keyBuf.key), password, 1, 256).then(function (hashBuf) { return bufToB64(hashBuf); diff --git a/src/app/views/userLayout.html b/src/app/views/userLayout.html index c01f7df47d..9275b2808c 100644 --- a/src/app/views/userLayout.html +++ b/src/app/views/userLayout.html @@ -147,6 +147,11 @@