From 336e71d7af9b0c8b3c188985b5f720311c8b0393 Mon Sep 17 00:00:00 2001 From: "paulo.neves" Date: Mon, 10 Feb 2014 10:32:10 -0200 Subject: [PATCH] add sessionstorage to localStorage provider. --- angular-local-storage.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/angular-local-storage.js b/angular-local-storage.js index ab7fa37..d4d1948 100644 --- a/angular-local-storage.js +++ b/angular-local-storage.js @@ -35,6 +35,11 @@ angularLocalStorage.provider('localStorageService', function(){ this.prefix = prefix; }; + // Setter for the storageType + this.setStorageType = function(storageType){ + this.storageType = storageType; + }; + // Setter for cookie config this.setStorageCookie = function(exp, path){ this.cookie = {