diff options
Diffstat (limited to 'js/app')
-rw-r--r-- | js/app/App.js | 2 | ||||
-rw-r--r-- | js/app/Config.js | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/js/app/App.js b/js/app/App.js index 2c8e71419..37266a438 100644 --- a/js/app/App.js +++ b/js/app/App.js @@ -9,4 +9,4 @@ */ /* jshint unused: false */ -var app = angular.module('News', ['ngRoute', 'ngSanitize', 'ngAnimate']);
\ No newline at end of file +var app = angular.module('News', ['ngRoute', 'ngSanitize', 'ngAnimate']); diff --git a/js/app/Config.js b/js/app/Config.js index df7cc60e5..8c9c09290 100644 --- a/js/app/Config.js +++ b/js/app/Config.js @@ -37,7 +37,8 @@ app.config(function ($routeProvider, $provide, $httpProvider) { $window.location.href.split($window.location.pathname)[0]; if (config.url.indexOf(BASE_URL) === 0 || config.url.indexOf(domain) === 0) { - config.headers.requesttoken = csrfToken; + /*jshint camelcase: false */ + config.headers.requesttoken = oc_requesttoken; } return config || $q.when(config); |