mirror of
https://github.com/bitwarden/browser
synced 2025-12-18 01:03:35 +00:00
fixes
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
function SiteService(cryptoService, userService, apiService) {
|
||||
function SiteService(cryptoService, userService, apiService) {
|
||||
this.cryptoService = cryptoService;
|
||||
this.userService = userService;
|
||||
this.apiService = apiService;
|
||||
@@ -43,7 +43,7 @@ function initSiteService() {
|
||||
|
||||
chrome.storage.local.get(sitesKey, function (obj) {
|
||||
var sites = obj[sitesKey];
|
||||
if (id in sites) {
|
||||
if (sites && id in sites) {
|
||||
callback(new Site(sites[id]));
|
||||
return;
|
||||
}
|
||||
@@ -254,10 +254,6 @@ function initSiteService() {
|
||||
};
|
||||
|
||||
function handleError(error, deferred) {
|
||||
if (error.status === 401 || error.status === 403) {
|
||||
// TODO: logout
|
||||
}
|
||||
|
||||
deferred.reject(error);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user