diff --git a/src/js/controller.js b/src/js/controller.js index 4c20dcb..545743f 100644 --- a/src/js/controller.js +++ b/src/js/controller.js @@ -2,11 +2,12 @@ angular.module('focaBotoneraFacturador') .controller('focaBotoneraFacturadorController', [ '$scope', '$window', - function($scope, $window) { + 'APP', + function($scope, $window, APP) { this.$onInit = function() { $scope.botones = $scope.$ctrl.botones; + if(APP) return; var max = ($scope.$ctrl.max) ? $scope.$ctrl.max : 12; - if($window.innerWidth > 576) { while(($scope.botones.length % max) !== 0) { $scope.botones.push('');