aRemove unused requires
This commit is contained in:
@@ -34,7 +34,7 @@
|
||||
// });
|
||||
// };
|
||||
|
||||
angular.module('Application').controller('AppController', ['$scope', '$location', '$timeout', '$interval', 'Client', function ($scope, $location, $timeout, $interval, Client) {
|
||||
angular.module('Application').controller('AppController', ['$scope', '$location', '$timeout', 'Client', function ($scope, $location, $timeout, Client) {
|
||||
Client.onReady(function () { if (!Client.getUserInfo().admin) $location.path('/'); });
|
||||
|
||||
var appId = $location.path().slice('/app/'.length);
|
||||
@@ -379,7 +379,7 @@ angular.module('Application').controller('AppController', ['$scope', '$location'
|
||||
$scope.security.busy = true;
|
||||
$scope.security.error = {};
|
||||
|
||||
Client.configureApp($scope.app.id, 'robots_txt', { robotsTxt: $scope.security.robotsTxt }, function (error,) {
|
||||
Client.configureApp($scope.app.id, 'robots_txt', { robotsTxt: $scope.security.robotsTxt }, function (error) {
|
||||
if (error) return Client.error(error);
|
||||
|
||||
$scope.security.currentRobotsTxt = $scope.security.robotsTxt;
|
||||
|
||||
Reference in New Issue
Block a user