diff --git a/src/js/controller.js b/src/js/controller.js index b192d8c..6baa9b6 100644 --- a/src/js/controller.js +++ b/src/js/controller.js @@ -1,7 +1,7 @@ angular.module('focaBotoneraPrincipal') .controller('focaBotoneraPrincipalController', [ - '$scope', '$location', '$cookies', 'botones', 'focaModalService', 'APP', - function($scope, $location, $cookies, botones, focaModalService, APP) { + '$scope', '$location', '$localStorage', 'botones', 'focaModalService', 'APP', + function($scope, $location, $localStorage, botones, focaModalService, APP) { $scope.paginas = []; if(APP === 'distribuidor') { $scope.paginas.push(botones.data.slice(0, 3)); @@ -19,7 +19,7 @@ angular.module('focaBotoneraPrincipal') }; $scope.showTerminal = function() { - var key = $cookies.get('terminalKey'); + var key = $localStorage.terminalKey; focaModalService.alert('SU TERMINAL ES: ' + key); }; }