mirror of
https://github.com/overleaf/overleaf.git
synced 2025-04-08 22:40:48 +00:00
Relocate qProvider setup.
This commit is contained in:
parent
f811978e52
commit
a9b104f674
2 changed files with 3 additions and 3 deletions
services/web/public/coffee
|
@ -17,7 +17,8 @@ define [
|
|||
"ErrorCatcher"
|
||||
"localStorage"
|
||||
"ngTagsInput"
|
||||
]).config (sixpackProvider)->
|
||||
]).config ($qProvider, sixpackProvider)->
|
||||
$qProvider.errorOnUnhandledRejections(false)
|
||||
sixpackProvider.setOptions({
|
||||
debug: false
|
||||
baseUrl: window.sharelatex.sixpackDomain
|
||||
|
|
|
@ -34,14 +34,13 @@ define [
|
|||
"__MAIN_CLIENTSIDE_INCLUDES__"
|
||||
], () ->
|
||||
angular.module('SharelatexApp').config(
|
||||
($locationProvider, $qProvider) ->
|
||||
($locationProvider) ->
|
||||
try
|
||||
$locationProvider.html5Mode({
|
||||
enabled: false,
|
||||
requireBase: false,
|
||||
rewriteLinks: false
|
||||
})
|
||||
$qProvider.errorOnUnhandledRejections(false)
|
||||
catch e
|
||||
console.error "Error while trying to fix '#' links: ", e
|
||||
)
|
||||
|
|
Loading…
Add table
Reference in a new issue