diff --git a/src/Core/Services/ApiService.cs b/src/Core/Services/ApiService.cs index ec6ca4d8a..e7e8448e4 100644 --- a/src/Core/Services/ApiService.cs +++ b/src/Core/Services/ApiService.cs @@ -27,7 +27,6 @@ namespace Bit.Core.Services private readonly IPlatformUtilsService _platformUtilsService; private readonly Func _logoutCallbackAsync; private string _deviceType; - private bool _usingBaseUrl = false; public ApiService( ITokenService tokenService, @@ -50,7 +49,6 @@ namespace Bit.Core.Services UrlsSet = true; if(!string.IsNullOrWhiteSpace(urls.Base)) { - _usingBaseUrl = true; ApiBaseUrl = urls.Base + "/api"; IdentityBaseUrl = urls.Base + "/identity"; return; diff --git a/src/Core/Services/LockService.cs b/src/Core/Services/LockService.cs index 209598a2d..e931c2d1d 100644 --- a/src/Core/Services/LockService.cs +++ b/src/Core/Services/LockService.cs @@ -66,7 +66,7 @@ namespace Bit.Core.Services public async Task CheckLockAsync() { - if(false) // TODO: view is open? + if(_platformUtilsService.IsViewOpen()) { return; }