mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Disable erroring behaviour for unhandled rejections.
This commit is contained in:
parent
86e66bbed1
commit
55476f1693
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue