Update $qProvider configuration

The default logic for how rejected promises are handled has changed slightly. This reinstates the previous default behaviour.
This commit is contained in:
Matt-Yorkley
2021-08-02 23:01:28 +01:00
parent d268cc7bb7
commit 5fb782aeba
3 changed files with 10 additions and 6 deletions

View File

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