1
0
Fork 0
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:
Paulo Reis 2017-07-03 11:19:13 +01:00
parent f811978e52
commit a9b104f674
2 changed files with 3 additions and 3 deletions
services/web/public/coffee

View file

@ -17,7 +17,8 @@ define [
"ErrorCatcher"
"localStorage"
"ngTagsInput"
]).config (sixpackProvider)->
]).config ($qProvider, sixpackProvider)->
$qProvider.errorOnUnhandledRejections(false)
sixpackProvider.setOptions({
debug: false
baseUrl: window.sharelatex.sixpackDomain

View file

@ -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
)