Disable erroring behaviour for unhandled rejections.

This commit is contained in:
Paulo Reis 2017-07-03 10:42:39 +01:00
parent 86e66bbed1
commit 55476f1693

View file

@ -34,13 +34,14 @@ define [
"__MAIN_CLIENTSIDE_INCLUDES__" "__MAIN_CLIENTSIDE_INCLUDES__"
], () -> ], () ->
angular.module('SharelatexApp').config( angular.module('SharelatexApp').config(
($locationProvider) -> ($locationProvider, $qProvider) ->
try try
$locationProvider.html5Mode({ $locationProvider.html5Mode({
enabled: false, enabled: false,
requireBase: false, requireBase: false,
rewriteLinks: false rewriteLinks: false
}) })
$qProvider.errorOnUnhandledRejections(false)
catch e catch e
console.error "Error while trying to fix '#' links: ", e console.error "Error while trying to fix '#' links: ", e
) )