Update $locationProvider config

The defaults were changed to something our app doesn't expect. This reinstates the expected behavior
This commit is contained in:
Matt-Yorkley
2021-08-02 19:18:34 +01:00
parent f8e0d71b15
commit 5f70275ed4
2 changed files with 3 additions and 2 deletions

View File

@@ -10,5 +10,6 @@ angular.module("ofn.admin", [
"admin.taxons",
"infinite-scroll",
"admin.orders"
]).config ($httpProvider) ->
]).config ($httpProvider, $locationProvider) ->
$httpProvider.defaults.headers.common["Accept"] = "application/json, text/javascript, */*"
$locationProvider.hashPrefix('')

View File

@@ -15,6 +15,6 @@ angular.module("Darkswarm", [
]).config ($httpProvider, $tooltipProvider, $locationProvider, $anchorScrollProvider) ->
$httpProvider.defaults.headers['common']['X-Requested-With'] = 'XMLHttpRequest'
$httpProvider.defaults.headers.common['Accept'] = "application/json, text/javascript, */*"
$locationProvider.hashPrefix('')
# We manually handle our scrolling
$anchorScrollProvider.disableAutoScrolling()