Skip to content

Commit 9113839

Browse files
gets0ulJelana
authored andcommitted
Fix for issue topcoder-archive#946
Remove non-critical errors in console when accessing the website Possible cause and workaround: angular-ui/ui-router#2889
1 parent 273d967 commit 9113839

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

app/topcoder.module.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,4 +98,9 @@ import { getCurrentUser, loadUser } from './services/userv3.service.js'
9898
$locationProvider.html5Mode(true)
9999
RestangularProvider.setRequestSuffix('/')
100100
}])
101+
102+
// related issue and possible workaround: https://github.com/angular-ui/ui-router/issues/2889
103+
angular.module('topcoder').config(['$qProvider', function ($qProvider) {
104+
$qProvider.errorOnUnhandledRejections(false);
105+
}]);
101106
})()

0 commit comments

Comments
 (0)