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__"
|
||||
], () ->
|
||||
angular.module('SharelatexApp').config(
|
||||
($locationProvider) ->
|
||||
($locationProvider, $qProvider) ->
|
||||
try
|
||||
$locationProvider.html5Mode({
|
||||
enabled: false,
|
||||
requireBase: false,
|
||||
rewriteLinks: false
|
||||
})
|
||||
$qProvider.errorOnUnhandledRejections(false)
|
||||
catch e
|
||||
console.error "Error while trying to fix '#' links: ", e
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue