mirror of
https://github.com/bitwarden/browser
synced 2025-12-18 01:03:35 +00:00
clear vault upon logout. full sync vault upon login.
This commit is contained in:
@@ -186,6 +186,17 @@ function initSiteService() {
|
||||
});
|
||||
};
|
||||
|
||||
SiteService.prototype.clear = function (userId, callback) {
|
||||
if (!callback || typeof callback !== 'function') {
|
||||
throw 'callback function required';
|
||||
}
|
||||
|
||||
chrome.storage.local.remove('sites_' + userId, function () {
|
||||
self.decryptedSiteCache = null;
|
||||
callback();
|
||||
});
|
||||
};
|
||||
|
||||
SiteService.prototype.delete = function (id, callback) {
|
||||
if (!callback || typeof callback !== 'function') {
|
||||
throw 'callback function required';
|
||||
|
||||
Reference in New Issue
Block a user