Skip to content

Commit

Permalink
Fix some codacy errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
viklund committed Jun 20, 2018
1 parent c158e4e commit 8ee0693
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions frontend/src/js/app.routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@
// configure routes
angular.module("App")
// Stolen from https://medium.com/angularjs-tricks/prevent-annoying-template-caching-in-angularjs-1-x-b706bf9c4056
.factory("intelligentTemplateCache", ["$injector", function($injector) {
.factory("intelligentTemplateCache", [function() {
return {
"request": function(config) {
if (config.url.indexOf("views") !== -1) {
config.url = config.url + '?v=SED_MAKEFILE_CACHE_VERSION';
config.url = config.url + "?v=SED_MAKEFILE_CACHE_VERSION";
}

return config;
}
}
};
}])
.config(["$routeProvider", "$locationProvider", "$httpProvider", function($routeProvider, $locationProvider, $httpProvider) {
$routeProvider
Expand Down Expand Up @@ -50,6 +50,6 @@
$locationProvider.html5Mode(true);

// More intelligent template caching
$httpProvider.interceptors.push('intelligentTemplateCache');
$httpProvider.interceptors.push("intelligentTemplateCache");
}]);
})();

0 comments on commit 8ee0693

Please sign in to comment.