1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-23 11:56:00 +01:00

init storage

This commit is contained in:
Kyle Spearrin 2017-11-29 22:47:21 -05:00
parent 62e1dbb642
commit e307d1e87d

View File

@ -162,6 +162,10 @@
}; };
$scope.collapseAll = function () { $scope.collapseAll = function () {
if (!$localStorage.collapsedFolders) {
$localStorage.collapsedFolders = {};
}
$localStorage.collapsedFolders.none = true; $localStorage.collapsedFolders.none = true;
$localStorage.collapsedFolders.favorite = true; $localStorage.collapsedFolders.favorite = true;
@ -178,6 +182,10 @@
}; };
$scope.expandAll = function () { $scope.expandAll = function () {
if (!$localStorage.collapsedFolders) {
$localStorage.collapsedFolders = {};
}
delete $localStorage.collapsedFolders.none; delete $localStorage.collapsedFolders.none;
delete $localStorage.collapsedFolders.favorite; delete $localStorage.collapsedFolders.favorite;