diff options
Diffstat (limited to 'js/app/Config.js')
-rw-r--r-- | js/app/Config.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/js/app/Config.js b/js/app/Config.js index 4df6c9b00..c094c799d 100644 --- a/js/app/Config.js +++ b/js/app/Config.js @@ -7,7 +7,8 @@ * @author Bernhard Posselt <dev@bernhard-posselt.com> * @copyright Bernhard Posselt 2014 */ -app.config(function ($routeProvider, $provide, $httpProvider) { +app.config( + function ($routeProvider, $provide, $httpProvider, $locationProvider) { 'use strict'; var feedType = { @@ -19,6 +20,10 @@ app.config(function ($routeProvider, $provide, $httpProvider) { EXPLORE: 5 }; + // default hashPrefix changed in angular 1.6 to '!' + // change back to empty string to keep links working + $locationProvider.hashPrefix(''); + // constants $provide.constant('REFRESH_RATE', 60); // seconds $provide.constant('ITEM_BATCH_SIZE', 40); // how many items should be |