Skip to content

Commit 336e71d

Browse files
author
paulo.neves
committed
add sessionstorage to localStorage provider.
1 parent 4f71583 commit 336e71d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

angular-local-storage.js

+5
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@ angularLocalStorage.provider('localStorageService', function(){
3535
this.prefix = prefix;
3636
};
3737

38+
// Setter for the storageType
39+
this.setStorageType = function(storageType){
40+
this.storageType = storageType;
41+
};
42+
3843
// Setter for cookie config
3944
this.setStorageCookie = function(exp, path){
4045
this.cookie = {

0 commit comments

Comments
 (0)