mirror of
https://github.com/bitwarden/browser
synced 2025-12-19 01:33:33 +00:00
web vault url environment for U2F
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
utilsService.initListSectionItemListeners($(document), angular);
|
||||
|
||||
$scope.baseUrl = $window.localStorage.getItem(constantsService.baseUrlKey) || '';
|
||||
$scope.webVaultUrl = $window.localStorage.getItem(constantsService.webVaultUrlKey) || '';
|
||||
$scope.apiUrl = $window.localStorage.getItem(constantsService.apiUrlKey) || '';
|
||||
$scope.identityUrl = $window.localStorage.getItem(constantsService.identityUrlKey) || '';
|
||||
|
||||
@@ -20,6 +21,14 @@
|
||||
$window.localStorage.removeItem(constantsService.baseUrlKey);
|
||||
}
|
||||
|
||||
if ($scope.webVaultUrl && $scope.webVaultUrl !== '') {
|
||||
$scope.webVaultUrl = formatUrl($scope.webVaultUrl);
|
||||
$window.localStorage.setItem(constantsService.webVaultUrlKey, $scope.webVaultUrl);
|
||||
}
|
||||
else {
|
||||
$window.localStorage.removeItem(constantsService.webVaultUrlKey);
|
||||
}
|
||||
|
||||
if ($scope.apiUrl && $scope.apiUrl !== '') {
|
||||
$scope.apiUrl = formatUrl($scope.apiUrl);
|
||||
$window.localStorage.setItem(constantsService.apiUrlKey, $scope.apiUrl);
|
||||
|
||||
Reference in New Issue
Block a user