mirror of
https://github.com/bitwarden/desktop.git
synced 2024-11-02 08:30:14 +01:00
catch security error when setting env urls
This commit is contained in:
parent
d433d9c4fc
commit
1f8e30b5cd
@ -11,6 +11,7 @@ function ApiService(tokenService, appIdService, utilsService, constantsService,
|
||||
|
||||
function initApiService() {
|
||||
ApiService.prototype.setUrls = function () {
|
||||
try {
|
||||
var storedBaseUrl = window.localStorage.getItem(this.constantsService.baseUrlKey);
|
||||
|
||||
if (storedBaseUrl) {
|
||||
@ -26,6 +27,11 @@ function initApiService() {
|
||||
this.identityBaseUrl = storedIdentityUrl;
|
||||
return;
|
||||
}
|
||||
}
|
||||
catch (e) {
|
||||
console.log('Unable to set custom environment URLs:');
|
||||
console.log(e);
|
||||
}
|
||||
|
||||
// Desktop
|
||||
//this.baseUrl = 'http://localhost:4000';
|
||||
|
Loading…
Reference in New Issue
Block a user