Skip to content

Commit ad20cde

Browse files
committed
disable errorOnUnhandledRejections
workaround angular-ui/ui-router#2889
1 parent a25fd00 commit ad20cde

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

www/base/src/app/app.route.coffee

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
class Route extends Config
2-
constructor: ($urlRouterProvider, glMenuServiceProvider, $locationProvider, $compileProvider, config) ->
2+
constructor: ($urlRouterProvider, glMenuServiceProvider, $locationProvider, $qProvider, $compileProvider, config) ->
33
# angularjs 1.6 sets ! as default prefix, but this would break all our URLs!
44
$locationProvider.hashPrefix('')
55
$compileProvider.preAssignBindingsEnabled(true)
6+
# workaround https://github.com/angular-ui/ui-router/issues/2889
7+
$qProvider.errorOnUnhandledRejections(false)
68
$urlRouterProvider.otherwise('/')
79
# the app title needs to be < 18 chars else the UI looks bad
810
# we try to find best option

0 commit comments

Comments
 (0)